예제 #1
0
        public async Task <IActionResult> GetAllPaginated(int skip, int take)
        {
            var data = await _userReadRepository.GetAsyncPaginated(skip, take);

            return(Ok(
                       new
            {
                Data = data.Select(d => d.ToVM()),
                Total = _userReadRepository.Total
            }
                       ));
        }