示例#1
0
        public ActionResult VentasEdit(FormCollection f)
        {
            if (Session["user"] == null)
            {
                return(RedirectToAction("Login", "Usuario"));
            }

            int    Id_ventas       = Int32.Parse(f["Id_ventas"]);
            string Estado_venta    = f["Estado_venta"];
            string Estado_despacho = f["Estado_despacho"];
            string Fecha_envio     = f["Fecha_envio"];
            string Fecha_entrega   = f["Fecha_entrega"];

            DALventa.Modificar(Id_ventas, Estado_venta, Estado_despacho, Fecha_envio, Fecha_entrega);

            ViewBag.Id_ventas = Id_ventas;
            return(View());
        }