public ActionResult Edit(User user) { var Us = db.GetUserByUserName(user.UserName); if (Us == null) { return(HttpNotFound()); } if (ModelState.IsValid) { db.Edit(user); return(RedirectToAction("List")); } return(View()); }
public ActionResult UserEdit(User model) { database.Edit(model); TempData["Message"] = "Zapisano w bazie danych"; return(RedirectToAction("Index")); }
public void Edit(User entity) { _userData.Edit(entity); }