public IActionResult Get() { try { return(new JsonResult(_servicio.GetVenta()) { StatusCode = 200 }); } catch (Exception e) { return(BadRequest(e.Message)); } }