public BasicResponse <GascontentanalyzeconfigInfo> GetGascontentanalyzeconfigById( GascontentanalyzeconfigGetRequest gascontentanalyzeconfigRequest) { var result = _Repository.GetGascontentanalyzeconfigById(gascontentanalyzeconfigRequest.Id); var gascontentanalyzeconfigInfo = ObjectConverter.Copy <GascontentanalyzeconfigModel, GascontentanalyzeconfigInfo>(result); var gascontentanalyzeconfigresponse = new BasicResponse <GascontentanalyzeconfigInfo>(); gascontentanalyzeconfigresponse.Data = gascontentanalyzeconfigInfo; return(gascontentanalyzeconfigresponse); }
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); }