| 123456789101112131415161718192021222324 |
- using Microsoft.AspNetCore.Mvc;
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Threading.Tasks;
- namespace LotteryWebApp.Components
- {
- public class ResultFormModel
- {
- public String url;
- public String title;
- }
- public class ResultForm : ViewComponent
- {
- public async Task<IViewComponentResult> InvokeAsync(String url, String title)
- {
- ResultFormModel model = new ResultFormModel();
- model.url = url;
- model.title = title;
- return View("ResultForm", model);
- }
- }
- }
|