public IActionResult Details(Guid id)
        {
            var fornecedor = _fornecedorApplicationService.GetById(id);

            if (fornecedor == null)
            {
                return(NotFound());
            }

            return(View(fornecedor));
        }
Beispiel #2
0
 public IActionResult GetById(int id)
 {
     try
     {
         return(Ok(fornecedorApplicationService.GetById(id)));
     }
     catch (Exception e)
     {
         return(StatusCode(500, e.Message));
     }
 }