예제 #1
0
        public ActionResult DelatedNumbers()
        {
            var delayedNumbers = new DelayedNumbersFilter();

            var delayList = new List <Delay>();

            for (int i = 0; i < 100; i++)
            {
                var delay = _operation.GetAmountDayForPick3Tens(i, DateTime.Now, DrawType.Midday);
                delayList.Add(delay);
            }

            delayedNumbers.DelayList = delayList.OrderByDescending(d => d.Days).ToList();
            return(View(delayedNumbers));
        }
예제 #2
0
        public ActionResult DelatedNumbers(DelayedNumbersFilter delayedNumbers)
        {
            var delayList = new List <Delay>();

            for (int i = 0; i < 100; i++)
            {
                var delay = _operation.GetAmountDayForPick3Tens(i, delayedNumbers.Date, delayedNumbers.DrawType);
                delayList.Add(delay);
            }

            delayedNumbers.DelayList = delayList.
                                       Where(f => f.Days >= delayedNumbers.MoreDays &&
                                             f.Days <= delayedNumbers.LessDays)
                                       .OrderByDescending(d => d.Days)
                                       .ToList();
            return(View(delayedNumbers));
        }