| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- @*
- 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<Term> d6 = new List<Term>();
- d6.Add(termNotDrawn);
- }
- <div>
- @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<Term> all = new List<Term>();
- // 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<Term> d6 = new List<Term>();
- // d6.Add(all[i]);
- // @await Component.InvokeAsync("TicketForm", new { data = d6, type = Constants.GameId.Direct4D, })
- // }
- // }
- }
- </div>
|