public ActionResult CreateUser(FormCollection fc) { user.Username = fc["Username"]; user.Name = fc["Name"]; user.Password = encrypt(fc["Password"]); user.Role = Convert.ToInt32(fc["Role"]); user.CreateUser(user); return(View()); }