| 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 LotoNumberHistoryModel
- {
- public string[] data;
- public string type;
- public Term term;
- }
- public class LotoNumberHistory : ViewComponent
- {
- public async Task<IViewComponentResult> InvokeAsync(string[] data, Term term, string type)
- {
- LotoNumberHistoryModel model = new LotoNumberHistoryModel();
- model.data = data == null ? new string[] { } : data;
- model.type = type;
- model.term = term;
- return View("LotoNumberHistory", model);
- }
- }
- }
|