public BasicResponse <GascontentanalyzeconfigInfo> GetGascontentanalyzeconfigCacheById( GascontentanalyzeconfigGetRequest gascontentanalyzeconfigRequest) { var req = new GasContentAnalyzeConfigGetCacheByConditionRequest { Condition = a => a.Id == gascontentanalyzeconfigRequest.Id }; var gascontentanalyzeconfigInfo = _gasContentAnalyzeConfigCacheService.GetCacheByCondition(req).Data[0]; var gascontentanalyzeconfigresponse = new BasicResponse <GascontentanalyzeconfigInfo>(); gascontentanalyzeconfigresponse.Data = gascontentanalyzeconfigInfo; return(gascontentanalyzeconfigresponse); }
public BasicResponse <List <GascontentanalyzeconfigInfo> > GetCacheByCondition(GasContentAnalyzeConfigGetCacheByConditionRequest request) { var infos = GasContentAnalyzeConfigCache.CacheInstance.Query().Where(request.Condition).ToList(); var ret = new BasicResponse <List <GascontentanalyzeconfigInfo> > { Data = infos }; return(ret); }