You're making an AJAX request, and doing nothing with the response.
Change your action to return just the redirection URL if the request is an AJAX request:
[HttpPost]
public ActionResult RemoveAdmin(string userid)
{
...
TempData["Success"] = "Roles Assigned Successfully";
if (Request.IsAjaxRequest()) return Json(Url.Action("AssignAdmin"));
return RedirectToAction("AssignAdmin");
}
Then change your Javascript code so that it navigates to the returned URL when the AJAX request succeeds:
$.ajax({
url: "RemoveAdmin/SuperAdmin",
data: { userid: userid },
type: "POST",
success: function(result) {
window.location.assign(result);
}
});