public HttpResponseMessage GetSecuredUserList(string DomainOrServerName, string UserName, string Password, string Secured = "secured")
        {
            List <Models.SecuredGroup> Users = new List <Models.SecuredGroup>();

            try
            {
                var logic = new Square9.SecurityDisplay.Logic.UsersLogic();
                Users = logic.GetSecuredUsers(DomainOrServerName, UserName, Password);
            }
            catch (Exception ex)
            {
                return(Request.CreateResponse(HttpStatusCode.Forbidden, "Unable to return the Secured Users List: " + ex.Message));
            }

            return(Request.CreateResponse(HttpStatusCode.Forbidden, Users));
        }
Пример #2
0
        public List <Models.SecuredGroup> GetSecuredUserList(string DomainOrServerName, string UserName, string Password, string Secured = "secured")
        {
            List <Models.SecuredGroup> Users = new List <Models.SecuredGroup>();

            try
            {
                var logic = new Square9.SecurityDisplay.Logic.UsersLogic();
                Users = logic.GetSecuredUsers(DomainOrServerName, UserName, Password);
            }
            catch (Exception)
            {
                throw;
            }

            return(Users);
        }