public SystemConfigViewModel GetSystemConfig(string code) { return(Mapper.Map <SystemConfig, SystemConfigViewModel>(_systemConfigRepository.FindSingle(x => x.Id == code))); }
public async Task <SystemConfigViewModel> GetSystemConfig(string code) { return(new SystemConfigViewModel().Map(await _systemConfigRepository.FindSingle(x => x.Id == code))); }