Ejemplo n.º 1
0
        public async Task <IActionResult> Get([FromQuery] PagingRequestParam param)
        {
            var result = await _majorService.GetAsync(pageIndex : param.PageIndex, pageSize : param.PageSize);

            if (result == null)
            {
                return(NotFound());
            }
            return(Ok(result));
        }