Exemplo n.º 1
0
        public ActionResult List(GetListPointCollectionRequest request, int?authuid, UserModel authUser)
        {
            request.AuthUid  = authuid.Value;
            request.AuthUser = authUser;

            return(new RestfulResult {
                Data = this._pointDataService.GetList(request)
            });
        }
Exemplo n.º 2
0
        public ExecuteResult <PointCollectionResponse> GetList(GetListPointCollectionRequest request)
        {
            int totalCount;

            var data = this._pointRepository.GetPagedList(request.PagerRequest, out totalCount, request.AuthUid, request.SortOrder);

            var response = new PointCollectionResponse(request.PagerRequest, totalCount)
            {
                PointInfoResponses = MappingManager.PointInfoResponseMapping(data)
            };

            return(new ExecuteResult <PointCollectionResponse>(response));
        }