Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [HttpPost]
- [ValidateAntiForgeryToken]
- public ActionResult CreateUser(UserModel userModel)
- {
- if (ModelState.IsValid)
- {
- IUserInterface userService = new UserBusinessLayer("sqlConn");
- userService.CreateUser(new UserEntity()
- {
- username = userModel.username,
- password = userModel.password,
- email = userModel.email
- });
- return RedirectToAction("ListUsers");
- }
- return View();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement