public async Task<ActionResult> Create(CreateModel model)
 {
     if (ModelState.IsValid)
     {                
         User user = new User { UserName = model.UserName, FirstName = model.FirstName, 
             LastName = model.LastName, UniversityID = model.UniversityID};
         IdentityResult result = await UserManager.CreateAsync(user, model.Password);
         if (result.Succeeded)
         {
             await UserManager.AddToRoleAsync(user.Id, model.SelectedRole); 
             return RedirectToAction("Index");
         }                    
         else
             AddErrorsFromResult(result);
     }
     model.Roles = new SelectList(RoleManager.Roles, "Name", "Name"); 
     return View(model);
 }
 public ActionResult Create()
 {
     CreateModel model = new CreateModel(){Roles = new SelectList(RoleManager.Roles, "Name", "Name")};
  
     return View(model); 
 }