Exemple #1
0
 public IActionResult Get(int id)
 {
     try
     {
         if (id <= 0)
         {
             return(BadRequest("Por favor, entre um Id válido"));
         }
         return(Ok(_repo.Selecionar(id)));
     }
     catch (System.Exception)
     {
         throw;
     }
 }
 public PerfilUsuario Get(int id)
 {
     return(_repo.Selecionar(id));
 }