public ActionResult imprimirFactura(int?id) { VentasEntities db = new VentasEntities(); if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } else { return(View(db.imprimirFactura(id))); } }