public ExecuteResult <GroupStructInfoResponse <BrandInfoResponse> > GetAll4Group(BrandAllRequest request) { var entities = _brandRepository.GetListForAll(); var r = MappingManager.BrandInfoResponse4GroupMapping(entities); return(new ExecuteResult <GroupStructInfoResponse <BrandInfoResponse> >(r)); }
public ExecuteResult <GroupStructInfoResponse <BrandInfoResponse> > GetRefresh4Group(BrandRefreshRequest request) { var entities = this._brandRepository.GetListForRefresh(request.Timestamp); if (entities == null || entities.Count == 0) { return(new ExecuteResult <GroupStructInfoResponse <BrandInfoResponse> >(null)); } return(new ExecuteResult <GroupStructInfoResponse <BrandInfoResponse> >(MappingManager.BrandInfoResponse4GroupMapping(entities))); }