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