public ActionResult Edit([Bind(Include = "ArticuloId,Descripcion,Existencia,Precio")] Articulos articulos)
 {
     if (ModelState.IsValid)
     {
         db.Entry(articulos).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(articulos));
 }
Пример #2
0
 public ActionResult Edit(Ventas ventas)
 {
     if (ModelState.IsValid)
     {
         db.Entry(ventas).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(ventas));
 }
Пример #3
0
 public ActionResult Edit([Bind(Include = "ItemId,Descripcion,EsServicio,Cantidad,Precio,VentaId,ArtServId")] VentaItems ventaItems)
 {
     if (ModelState.IsValid)
     {
         db.Entry(ventaItems).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(ventaItems));
 }
Пример #4
0
 public ActionResult Edit([Bind(Include = "Id,FullName,UserName,Email,Contraseña,Tipo")] Usuarios usuarios)
 {
     if (ModelState.IsValid)
     {
         db.Entry(usuarios).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(usuarios));
 }
 public ActionResult Edit([Bind(Include = "Id,Description")] TipoUsuarios tipoUsuarios)
 {
     if (ModelState.IsValid)
     {
         db.Entry(tipoUsuarios).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(tipoUsuarios));
 }
 public ActionResult Edit([Bind(Include = "Id,Descripcion,Precio")] Servicios servicios)
 {
     if (ModelState.IsValid)
     {
         db.Entry(servicios).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(servicios));
 }