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 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); } } }