Created
July 29, 2021 10:28
-
-
Save gerhart92/c42e8486256cfe9f06c02e92df2f9b15 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public ActionResult Form() | |
{ | |
var dataSourceId = RenderingContext.CurrentOrNull.Rendering.DataSource; | |
var dataSource = Sitecore.Context.Database.Items.GetItem(dataSourceId); | |
if (dataSource == null) | |
{ | |
return View(); | |
} | |
var hubspotFormSettings = GetHubspotSettingsModel(dataSource); | |
return View(hubspotFormSettings); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment