| 1234567891011121314151617181920212223242526272829 |
- using LotteryWebApp.Service;
- using Microsoft.AspNetCore.Mvc;
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Threading.Tasks;
- namespace LotteryWebApp.Components
- {
- public class TicketFormModel
- {
- public List<Term> data { get; set; }
- public string type { get; set; }
- }
- public class TicketForm : ViewComponent
- {
- public async Task<IViewComponentResult> InvokeAsync(List<Term> data, string type)
- {
- TicketFormModel model = new TicketFormModel();
- model.data = data != null ? data : new List<Term>();
- model.type = type;
- return View("TicketForm", model);
- }
- }
- }
|