public ActionResult Details(int?id) { if (id == null) { return(HttpNotFound()); } Venta venta = ventaservice.FindById(id); return(View(venta)); }