Exemple #1
0
        public ActionResult <string> GetGroupsByQuery()
        {
            string result = "";

            if (Program.dataSet == null && Program.errorStatus != PasswdErrors.PasswdError.NoError)
            {
                JObject jObject = PasswdErrors.errorHandler(Program.errorStatus);
                Response.StatusCode = (int)jObject["StatusCode"];

                result = jObject.ToString();
            }
            else
            {
                result = APIMethods.GetGroups(Program.dataSet.Tables["GroupTable"], Request.QueryString.ToString());
            }

            return(result);
        }