TermResult.cshtml 1.1 KB

1234567891011121314151617181920212223242526272829303132
  1. @*
  2. For more information on enabling MVC for empty projects, visit http://go.microsoft.com/fwlink/?LinkID=397860
  3. *@
  4. @using LotteryWebApp.Common;
  5. @using System.Globalization;
  6. @using LotteryWebApp.Languages;
  7. @model TermResultModel
  8. <div>
  9. @{
  10. // for (int i = 0; i < Model.listTerm.Count; i++)
  11. if (Model != null && Model.listTerm != null && Model.listTerm.Count > 0)
  12. {
  13. string drawnDate = DateTime.ParseExact(Model.listTerm[0].date_random, "dd/MM/yyyy HH:mm:ss", CultureInfo.InvariantCulture).ToString("dd/MM/yyyy");
  14. <div class="loto-container">
  15. <div class="row py-2">
  16. <div class="col-6 text-left ">
  17. <span class="loto-game">@Lang.Singapore4DResult</span>
  18. </div>
  19. <div class="col-6 text-right ">
  20. <div class="draw-date"><img src="~/img/money_bag.png" /> @drawnDate</div>
  21. </div>
  22. </div>
  23. @await Component.InvokeAsync("LotoNumber", new { data = Model.listTerm[0], type = Constants.GameId.Direct4D, })
  24. </div>
  25. }
  26. }
  27. </div>