예제 #1
0
        public ExecuteResult<List<StoreInfoResponse>> GetAll(StoreGetAllRequest request)
        {

            var entities = _storeRepsitory.GetListForAll();
            var r = MappingManager.StoreResponseMapping(entities, request.CoordinateInfo).ToList();


            return new ExecuteResult<List<StoreInfoResponse>>(r);



            //var entities = this._storeRepsitory.GetListForAll();

            //return new ExecuteResult<List<StoreInfoResponse>>(MappingManager.StoreResponseMapping(entities, request.CoordinateInfo).ToList());
        }
예제 #2
0
        public RestfulResult All(StoreGetAllRequest request)
        {
            if (String.IsNullOrEmpty(request.Type))
            {
                return new RestfulResult { Data = this._storeDataService.GetAll(request) };
            }

            if (request.Type.ToLower() == "refresh")
            {
                return Refresh(new StoreGetRefreshRequest
                {
                    Refreshts = request.Refreshts
                });
            }

            return new RestfulResult { Data = this._storeDataService.GetAll(request) };
        }