public async Task <IHttpActionResult> DeletePedido(int Id) { try { return(Json(await _Pedido.DeletePedido(Id))); } catch (Exception ex) { throw ex; } }