Ejemplo n.º 1
0
        public PartialViewResult DowList(DayOfWeek dayOfWeek) //
        {
            var goaldetailTemplates = db.GoalDetailTemplates.Where(p => p.DayOfWeek == dayOfWeek).OrderBy(p => p.StartCountTime).ToList();
            var view = new DowScheduleView
            {
                GoalDetailTemplates = goaldetailTemplates,
                DayOfWeek           = dayOfWeek
            };

            return(PartialView(view));
        }
        public PartialViewResult DowList(DayOfWeek dayOfWeek) //
        {
            var programSchedules = _programScheduleRepository.GetMany(p => p.DayOfWeek == dayOfWeek, p => p.Time).ToList();
            var view             = new DowScheduleView
            {
                ProgramSchedules = programSchedules,
                DayOfWeek        = dayOfWeek
            };

            return(PartialView(view));
        }