Example #1
0
 public ActionResult Create(Users user)
 {
     if (ModelState.IsValid)
     {
         DAL.User.CreateUser(user);
     }
       return RedirectToAction("List");
 }
Example #2
0
 public ActionResult Edit(Guid id,Users user)
 {
     if (ModelState.IsValid)
     {
         user.UserId = id;
         DAL.User.UpdateUser(user);
     }
     return RedirectToAction("List");
 }