@*
For more information on enabling MVC for empty projects, visit http://go.microsoft.com/fwlink/?LinkID=397860
*@
@using LotteryWebApp.Common;
@using System.Globalization;
@using LotteryWebApp.Languages;
@model TermResultModel
@{
// for (int i = 0; i < Model.listTerm.Count; i++)
if (Model != null && Model.listTerm != null && Model.listTerm.Count > 0)
{
string drawnDate = DateTime.ParseExact(Model.listTerm[0].date_random, "dd/MM/yyyy HH:mm:ss", CultureInfo.InvariantCulture).ToString("dd/MM/yyyy");
@Lang.Singapore4DResult

@drawnDate
@await Component.InvokeAsync("LotoNumber", new { data = Model.listTerm[0], type = Constants.GameId.Direct4D, })
}
}