...really

This commit is contained in:
Michael 2017-05-22 21:28:51 -04:00
parent 6d3cbbc1cd
commit 3e9e9b5e9c

View file

@ -62,7 +62,7 @@ public ActionResult AddUserToRole(AddUserToRoleViewModel model)
{ {
var usermanager = HttpContext.GetOwinContext().Get<ApplicationUserManager>(); var usermanager = HttpContext.GetOwinContext().Get<ApplicationUserManager>();
usermanager.AddToRole(model.Username, model.RoleId); usermanager.AddToRole(model.Username, model.RoleId);
return Index("roles"); return RedirectToAction("Index", new { id = "roles" });
} }
public ActionResult RoleDetails(string id) public ActionResult RoleDetails(string id)