@* For more information on enabling MVC for empty projects, visit http://go.microsoft.com/fwlink/?LinkID=397860 *@ @using LotteryWebApp.Languages; @using LotteryWebApp.Components; @using LotteryWebApp.Common; @using System.Globalization; @model LotoNumberModel @{ string endDate = DateTime.ParseExact(Model.data.date_end, "dd/MM/yyyy HH:mm:ss", CultureInfo.InvariantCulture).ToString("dd/MM/yyyy"); string endTime = DateTime.ParseExact(Model.data.date_end, "dd/MM/yyyy HH:mm:ss", CultureInfo.InvariantCulture).ToString("HH:mm"); string drawnDate = DateTime.ParseExact(Model.data.date_random, "dd/MM/yyyy HH:mm:ss", CultureInfo.InvariantCulture).ToString("dd/MM/yyyy"); string[] termResult = Model.data.result.Split("$"); string[] top3 = termResult[0].Split("-"); string[] starter = termResult[1].Split("-"); string[] consolation = termResult[2].Split("-"); }
@*
@Lang.Singapore4DResult
@drawnDate
*@ @{ for (int i = 0; i < top3.Length; i++) {
@if (i == 0) { FIRST PRIZE } else if (i == 1) { SECOND PRIZE } else { THIRD PRIZE }
@foreach (var b in top3[i]) {
@b
}
}
STARTER PRIZES
@for (int i = 0; i < starter.Length; i++) {
@foreach (var b in starter[i]) {
@b
}
}
CONSOLATION PRIZES
@for (int i = 0; i < consolation.Length; i++) {
@foreach (var b in consolation[i]) {
@b
}
}
}