public ActionResult Edit(UserVM user) { if (!ModelState.IsValid) return View(user); UserBLL.Update(user.GetDataObject()); return RedirectToAction("Details", "User", new { id = user.UserId }); }
public ActionResult Edit(int Id) { UserDO userDo = UserBLL.GetUser(Id); UserVM user = new UserVM(userDo); return View(user); }
public ActionResult Create() { UserVM newUser = new UserVM(); return View(newUser); }