public ActionResult <string> GetUsers() { 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.GetUsers(Program.dataSet.Tables["UserTable"]); } return(result); }