Example #1
0
 public ActionResult AddCWLLogin(CWLLogin login)
 {
     //Create test users
     var user = new ApplicationUser();
     user.UserName = login.LoginId;
     var result = UserManager.Create(user);
     if (result.Succeeded)
     {
         result = UserManager.AddToRole(user.Id, "Program Assistant");
     }
     return View("AddCWLLogin", login);
 }
Example #2
0
 public ActionResult AddCWLLogin()
 {
     CWLLogin login = new CWLLogin();
     return View("AddCWLLogin", login);
 }