Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [HttpPost]
- public ActionResult CreateUser(UserModel user)
- {
- //my class libary / entity framework class for a user
- User efUser = new User();
- efUser.Email = user.Email;
- efUser.Username = user.Username;
- efUser.Password = user.Password;
- UserBLL userBLL = new UserBLL();
- //send the method to classlibary / logic layer
- userBLL.CreateUser(efUser);
- return RedirectToAction("Index");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement