| 123456789101112131415161718192021222324252627 |
- 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<IViewComponentResult> InvokeAsync(String ticketType)
- {
- ChooseFormModel model = new ChooseFormModel();
- long milliseconds = DateTime.Now.Ticks;
- model.tics = milliseconds;
- model.ticketType = ticketType;
- return View("ChooseForm", model);
- }
- }
- }
|