예제 #1
0
        public ActionResult Edit(UserVM user)
        {
            if (!ModelState.IsValid)
                return View(user);

            UserBLL.Update(user.GetDataObject());
            return RedirectToAction("Details", "User", new { id = user.UserId });
        }
예제 #2
0
 public ActionResult Edit(int Id)
 {
     UserDO userDo = UserBLL.GetUser(Id);
     UserVM user = new UserVM(userDo);
     return View(user);
 }
예제 #3
0
 public ActionResult Create()
 {
     UserVM newUser = new UserVM();
     return View(newUser);
 }