示例#1
0
        public async Task <IActionResult> GetEvents([FromQuery] UserParams userParams)
        {
            var evnts = await _repo.GetEvents(userParams);

            Response.AddPagination(evnts.CurrentPage, evnts.PageSize, evnts.TotalCount, evnts.TotalPages);

            return(Ok(evnts));
        }