diff --git a/Project-Unite/Controllers/AdminController.cs b/Project-Unite/Controllers/AdminController.cs index c5d54a7..57bd245 100644 --- a/Project-Unite/Controllers/AdminController.cs +++ b/Project-Unite/Controllers/AdminController.cs @@ -62,7 +62,7 @@ public ActionResult AddUserToRole(AddUserToRoleViewModel model) { var usermanager = HttpContext.GetOwinContext().Get(); usermanager.AddToRole(model.Username, model.RoleId); - return Index("roles"); + return RedirectToAction("Index", new { id = "roles" }); } public ActionResult RoleDetails(string id)