@* For more information on enabling MVC for empty projects, visit http://go.microsoft.com/fwlink/?LinkID=397860 *@ @using LotteryWebApp.Languages; @using LotteryWebApp.Controllers; @using LotteryWebApp.Common; @using LotteryWebApp.Service; @model LastTermResult_ViewModel @{ Term termNotDrawn = Model.listTermNotDrawn != null ? Model.listTermNotDrawn.Find(x => x.status == "1") : null; List d6 = new List(); d6.Add(termNotDrawn); }
@if (termNotDrawn != null) { @await Component.InvokeAsync("TicketForm", new { data = d6, type = Constants.GameId.Direct4D, }) @await Component.InvokeAsync("TicketForm", new { data = d6, type = Constants.GameId.Direct3D, }) @await Component.InvokeAsync("TicketForm", new { data = d6, type = Constants.GameId.Direct2D, }) // List all = new List(); // if (Model.termType == Constants.GameGroup.Singapore) // { // if (Model.listTermNotDrawn != null && Model.listTermNotDrawn.Count > 0) // { // Term termNotDrawn = Model.listTermNotDrawn.Find(x => x.status == "1"); // Term termWaitingDrawn = Model.listTermNotDrawn.Find(x => x.status == "2"); // if (termNotDrawn != null) // { // all.Add(termNotDrawn); // } // if (termWaitingDrawn != null) // { // all.Add(termWaitingDrawn); // } // } // all.AddRange(Model.listTerm); // for (int i = 0; i < all.Count; i++) // { // List d6 = new List(); // d6.Add(all[i]); // @await Component.InvokeAsync("TicketForm", new { data = d6, type = Constants.GameId.Direct4D, }) // } // } }