Exemplo n.º 1
0
        public async Task <ActionResult> GetByUser(PaginationParams paginationParams, int userId)
        {
            var circles = await _repo.GetCirclesByUser(paginationParams, userId);

            Response.AddPagination(circles.CurrentPage, circles.PageSize, circles.TotalCount, circles.TotalPages);
            return(Ok(this._mapper.Map <IEnumerable <CircleForReturnDto> >(circles)));
        }