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