public ActionResult ActiveUser(string sAMAccountName) { try { ADController.ActiveAccount(sAMAccountName); } catch (Exception ex) { throw new ArgumentException(ex.Message); } return(RedirectToAction("UserList", new { IsActive = true })); }
public ActionResult ActiveUser(string sAMAccountName) { ADController.ActiveAccount(sAMAccountName); return(Redirect("/Jurisdiction/Admin/UserList?IsActive=true")); }