示例#1
0
        public ActionResult GetTimerList()
        {
            List <LocationDockQuery> ldq = _repo.GetLocationDockings1();


            List <TimerModel> list = new List <TimerModel>();

            foreach (var d in ldq)
            {
                list.Add(new TimerModel
                {
                    TimeDisplayName = "Display_" + d.LocationCode,
                    ReleaseDateTime = d.EndTime.ToString()
                });
            }

            ViewBag.TimerList = list;



            return(View("TimerReset", ldq));
        }