Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Web;
- using System.Web.Mvc;
- using OT_lib.BusinessLayer;
- using OT_lib.Entity;
- using OverTime.Models;
- namespace OverTime.Controllers
- {
- public class UserController : Controller
- {
- //
- // GET: /User/
- public ActionResult User()
- {
- return View();
- }
- [HttpPost]
- public ActionResult User(UserModel userModel)
- {
- UserBusinessLayer userService = new UserBusinessLayer();
- userService.CreateUser(new UserEntity() {
- username= userModel.username,
- email = userModel.email,
- password = userModel.password
- });
- return View();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement