Example #1
0
 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;
     }
 }
Example #2
0
        public Info Get(int id)
        {
            var entity = _infoRepository.Get(id);

            return(InfoFactory.Create(entity));
        }