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 InvokeAsync(String url, String title) { ResultFormModel model = new ResultFormModel(); model.url = url; model.title = title; return View("ResultForm", model); } } }