public bool AddSiteBinding(string name, KuduBinding binding) { var application = GetApplication(name); if (application == null) { return(false); } return(_siteManager.AddSiteBinding(name, binding)); }
public bool RemoveServiceSiteBinding(string name, KuduBinding siteBinding) { var application = GetApplication(name); if (application == null) { return(false); } return(_siteManager.RemoveSiteBinding(name, siteBinding, SiteType.Service)); }
public async Task <ActionResult> RemoveServiceSiteBinding(string slug, string siteBinding) { IApplication application = _applicationService.GetApplication(slug); if (application == null) { return(HttpNotFound()); } _applicationService.RemoveServiceSiteBinding(slug, KuduBinding.Parse(siteBinding)); return(await GetApplicationView("settings", "Details", slug)); }