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