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));
 }