public HttpResponseMessage GetSiteRegistrationAllowed(int siteId) { SecurityClientProcessor.UserContext.SiteId = siteId; bool result = SecurityClientProcessor.GetSiteConfiguration().AllowRegistration; return(Request.CreateResponse(HttpStatusCode.OK, result)); }
public HttpResponseMessage GetSiteConfiguration(int siteId) { SecurityClientProcessor.UserContext.SiteId = siteId; SiteConfigurationModel siteConfiguration = SecurityClientProcessor.GetSiteConfiguration(); return(Request.CreateResponse(HttpStatusCode.OK, siteConfiguration)); }