Exemplo n.º 1
0
 public Entity.AdminUserResponse Get(Guid id)
 {
     try
     {
         return(_adminUserRepository.FindBy(x => x.Guid.Equals(id)).Select(p => Mapper.Configuration.Mapper.Map <Entity.AdminUserResponse>(p)).FirstOrDefault());
     }
     catch (Exception ex)
     {
         _logger.Error(Constants.ACTION_EXCEPTION, $"AdminUserService.Get, Error: { ex.Message} ");
         return(null);
     }
 }
 public Entity.AdminUserResponse Get(Guid id)
 {
     try
     {
         return(_adminUserRepository.FindBy(x => x.Guid.Equals(id)).Select(p => Mapper.Configuration.Mapper.Map <Entity.AdminUserResponse>(p)).FirstOrDefault());
     }
     catch (Exception ex)
     {
         _logger.ErrorLog(ex, this.GetType().Name, MethodBase.GetCurrentMethod().Name);
         return(null);
     }
 }