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()); }
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) }; }