Exemplo n.º 1
0
        public ActionResult ActiveUser(string sAMAccountName)
        {
            try
            {
                ADController.ActiveAccount(sAMAccountName);
            }
            catch (Exception ex)
            {
                throw new ArgumentException(ex.Message);
            }

            return(RedirectToAction("UserList", new { IsActive = true }));
        }
Exemplo n.º 2
0
 public ActionResult ActiveUser(string sAMAccountName)
 {
     ADController.ActiveAccount(sAMAccountName);
     return(Redirect("/Jurisdiction/Admin/UserList?IsActive=true"));
 }