Пример #1
0
 public ActionResult Edit([Bind(Include = "Id,Adresss1,Adresss2,City,Country,Departamento,Phone,ContactName,StoreId")] Sucursal sucursal)
 {
     if (ModelState.IsValid)
     {
         db.Entry(sucursal).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(sucursal));
 }
Пример #2
0
 public ActionResult Edit([Bind(Include = "Id,Name")] Farmacies farmacies)
 {
     if (ModelState.IsValid)
     {
         db.Entry(farmacies).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(farmacies));
 }