示例#1
0
        public async Task <ActionResult> GetOwnedByUser(PaginationParams paginationParams, int userId)
        {
            var circles = await _repo.GetCirclesOwnedByUser(paginationParams, userId);

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