public IActionResult Delete(VentaDTOs venta) { try { return(new JsonResult(_servicio.DeleteVenta(venta)) { StatusCode = 200 }); } catch (Exception e) { return(BadRequest(e.Message)); } }