public HttpResponseMessage GetUserTree(string DomainOrServerName, string UserName, string Password) { List <Models.SecurityNode> Users = new List <Models.SecurityNode>(); try { var logic = new Square9.SecurityDisplay.Logic.UsersLogic(); Users = logic.GetSecuredUsersTree(DomainOrServerName, UserName, Password); } catch (Exception ex) { return(Request.CreateResponse(HttpStatusCode.Forbidden, "Unable to return the Secured Users Tree Results: " + ex.Message)); } return(Request.CreateResponse(HttpStatusCode.OK, Users)); }
public List <Models.SecurityNode> GetUserTree(string DomainOrServerName, string UserName, string Password) { List <Models.SecurityNode> Users = new List <Models.SecurityNode>(); try { var logic = new Square9.SecurityDisplay.Logic.UsersLogic(); Users = logic.GetSecuredUsersTree(DomainOrServerName, UserName, Password); } catch (Exception) { throw; } return(Users); }