public async Task <Info> Get(string id) { try { _logger.LogInfo("InfoController Get(id)"); return(await _infoRepository.Get(id)); } catch (Exception ex) { _logger.LogError(ex.Message); throw; } }
public Info Get(int id) { var entity = _infoRepository.Get(id); return(InfoFactory.Create(entity)); }