using Microsoft.AspNetCore.Mvc; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace LotteryWebApp.Components { public class ChooseFormModel { public long tics { get; set; } public string ticketType { get; set; } } public class ChooseForm : ViewComponent { public async Task InvokeAsync(String ticketType) { ChooseFormModel model = new ChooseFormModel(); long milliseconds = DateTime.Now.Ticks; model.tics = milliseconds; model.ticketType = ticketType; return View("ChooseForm", model); } } }