public static void UpdateStoreWixSiteUrl(this WebStores entity, WixStoreUrlToken token) { entity.WixSiteUrl = token.WixSiteUrl; entity.SiteUrl = token.WixSiteUrl; entity.UpdateOn = DateTime.Now; entity.UpdatedBy = DtoExtensions.CurrentUserId; }
public ActionResult UpdateWixStoreUrl(WixStoreUrlToken settings) { string error; var updated = WebstoreWixService.UpdateWixSiteUrl(ref settings, out error); return(Json( new { success = updated , error })); }