public ActionResult Index(int?page, int?size) { int total; var courts = courtService.GetAll(page ?? 1, size ?? 10, out total); return(View(courts)); }
public async Task <IActionResult> GetAll() { var result = await _courtService.GetAll(); return(Ok(result)); }