public HttpResponseMessage Get(string DomainOrServerName, string GroupName, bool Domain = true)
        {
            List <string> Users = new List <string>();

            try
            {
                var logic = new Square9.SecurityDisplay.Logic.UsersLogic();
                Users = logic.GetUsersOfGroup(DomainOrServerName, GroupName, Domain);
            }
            catch (Exception ex)
            {
                return(Request.CreateResponse(HttpStatusCode.Forbidden, "Unable to return the Secured Users Tree Results: " + ex.Message));
            }

            return(Request.CreateResponse(HttpStatusCode.OK, Users));
        }
Ejemplo n.º 2
0
        public List <string> Get(string DomainOrServerName, string GroupName, bool Domain = true)
        {
            List <string> Users = new List <string>();

            try
            {
                var logic = new Square9.SecurityDisplay.Logic.UsersLogic();
                Users = logic.GetUsersOfGroup(DomainOrServerName, GroupName, Domain);
            }
            catch (Exception)
            {
                throw;
            }

            return(Users);
        }