| 12345678910111213141516171819202122232425 |
- 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 LotoNumberModel
- {
- public Term data;
- public string type;
- }
- public class LotoNumber : ViewComponent
- {
- public async Task<IViewComponentResult> InvokeAsync(Term data, string type)
- {
- LotoNumberModel model = new LotoNumberModel();
- model.data = data;
- model.type = type;
- return View("LotoNumber", model);
- }
- }
- }
|