private bool IsCourt(int?courtId) { return(courtId != -1 ? _courtServices.GetCourtList().Any(c => c.Id == courtId) : false); }
public ActionResult Index() { var allCourt = _courtServices.GetCourtList(); return(View(allCourt)); }
private bool IsCourt(int?courtId) { return(courtId != -1 ? _courtServices.GetCourtList().Any(c => c.Id == courtId) : false); }
public ActionResult Index() { var allCourt = _courtServices.GetCourtList(); return(View(allCourt)); }