// GET: CargarVentas/Updat/5 public ActionResult ActualizarVenta(int id) { var venta = _ventasDAO.BuscarPorId(id); var datosDeVenta = new VentasViewModel { ProductoVendido = venta.Producto_Vendido, Talle = venta.Talle, CodigoArticulo = venta.Codigo_Articulo, PrecioRealDelProducto = (decimal)venta.Precio_Real_Del_Producto, PrecioDeVentaDelProducto = (decimal)venta.Precio_De_Venta_Del_Producto, FechaDeVenta = venta.Fecha_De_Venta, }; return(View(datosDeVenta)); }