public ActionResult GetOrganizations(WebServiceReturnTypeEnum webServiceReturnTypeEnum, WebServiceToken webServiceToken) { var organizations = WebServiceOrganization.GetOrganizations(); var gridSpec = new WebServiceOrganizationGridSpec(); return(GetResultsAsCsvDowloadOrJsonResult(webServiceReturnTypeEnum, organizations, gridSpec, "Organizations")); }
public List <WebServiceOrganization> GetOrganizations(string returnType, string webServiceToken) { return(CommandWrapper(webServiceToken, () => { var filteredProjects = WebServiceOrganization.GetOrganizations(); return filteredProjects; })); }