Example #1
0
        public ActionResult Index(int?page, int?size)
        {
            int total;
            var courts = courtService.GetAll(page ?? 1, size ?? 10, out total);

            return(View(courts));
        }
Example #2
0
        public async Task <IActionResult> GetAll()
        {
            var result = await _courtService.GetAll();

            return(Ok(result));
        }