Ejemplo n.º 1
0
        public ActionResult Index(int courtId)
        {
            var allDays       = _courtWorkingDaysServices.GetWorkingDaysForCourt(courtId).ToList();
            var isWorkingDays = allDays.Count < 1;
            CourtWithWorkingDaysModel courtWithWorkingHours = new CourtWithWorkingDaysModel()
            {
                Id             = courtId,
                Name           = _courtServices.GetCourtById(courtId).Name,
                AllWorkingDays = allDays,
                IsWorkingDays  = isWorkingDays
            };

            return(View(courtWithWorkingHours));
        }
Ejemplo n.º 2
0
        public ActionResult Details(int id)
        {
            var court = _courtServices.GetCourtById(id);

            return(View(court));
        }