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)); }
public ActionResult Details(int id) { var court = _courtServices.GetCourtById(id); return(View(court)); }