public SystemConfig GetSystemConfig(string code) { var rs = _systemConfigRepository.GetSingleByCondition(x => x.Code.Trim() == code.Trim()); //var rs = _systemConfigRepository.GetConfig(code); return(rs); }
public SystemConfig GetSystemConfig(string code) { return(_systemConfigRepository.GetSingleByCondition(x => x.Code == code)); }
public async Task <SystemConfig> GetSystemConfig(string code) { return(await _systemConfigRepository.GetSingleByCondition(x => x.Code == code)); }
public string GetByCode(string code) { return(_systemConfigRepository.GetSingleByCondition(x => x.Code == code).ValueString); }