Esempio n. 1
0
 public ActionResult Edit(User user)
 {
     if (ModelState.IsValid)
     {
         Facade.GetUserGateway().Update(user);
         return RedirectToAction("Index");
     }
     return View(user);
 }
Esempio n. 2
0
 public ActionResult Delete(int id, User user)
 {
     try
     {
         Facade.GetUserGateway().Delete(id);
         return RedirectToAction("Index");
     }
     catch
     {
         return View();
     }
 }