예제 #1
0
 public IActionResult Buscar(int id)
 {
     try
     {
         return(Ok(_IPedido.Buscar(id)));
     }
     catch (Exception ex)
     {
         return(BadRequest(new Error(HttpStatusCode.InternalServerError, "Pedido.Buscar()", ex.Message)));
     }
 }