public JsonNetResult UpdateWebsitePhoneNumbers(CustomerSite customersite) { var testa = ExigoDAL.GetCustomerSite(Identity.Current.CustomerID); ExigoDAL.UpdateCustomerSite(new CustomerSite { CustomerID = Identity.Current.CustomerID, PrimaryPhone = customersite.PrimaryPhone, SecondaryPhone = customersite.SecondaryPhone }); var testb = ExigoDAL.GetCustomerSite(Identity.Current.CustomerID); var html = string.Format(@" " + Resources.Common.Primary + @": <strong>{0}</strong><br /> " + Resources.Common.Secondary + @": <strong>{1}</strong> ", customersite.PrimaryPhone, customersite.SecondaryPhone); return(new JsonNetResult(new { success = true, action = "UpdateWebsitePhoneNumbers", html = html })); }
public ActionResult EnrollmentRedirect() { var url = GlobalSettings.ReplicatedSites.EnrollmentUrl; var customerSite = ExigoDAL.GetCustomerSite(Identity.Current.CustomerID); if (customerSite != null) { url = GlobalSettings.ReplicatedSites.GetEnrollmentUrl(customerSite.WebAlias); } return(Redirect(url)); }
public ActionResult ReplicatedSiteRedirect(int customerID = 0) { if (customerID == 0) { customerID = Identity.Current.CustomerID; } // Get Default url, if no web alias can be found var url = GlobalSettings.ReplicatedSites.FormattedBaseUrl.FormatWith(GlobalSettings.ReplicatedSites.DefaultWebAlias); var customerSite = ExigoDAL.GetCustomerSite(customerID); if (customerSite != null) { url = GlobalSettings.ReplicatedSites.FormattedBaseUrl.FormatWith(customerSite.WebAlias); } return(Redirect(url)); }