/// <summary> /// Returns company's contact information. /// </summary> /// <returns>Company's contact information, if found; otherwise, null.</returns> public Contact GetCompanyContact() { return(ContactProvider.GetContacts() .LatestVersion(mLatestVersionEnabled) .Published(!mLatestVersionEnabled) .OnSite(mSiteName) .Culture(mCultureName) .TopN(1)); }
/// <summary> /// Returns company's contact information. /// </summary> /// <returns>Company's contact information, if found; otherwise, null.</returns> public Contact GetCompanyContact() { return(ContactProvider.GetContacts() .LatestVersion(mLatestVersionEnabled) .Published(!mLatestVersionEnabled) .OnSite(SiteContext.CurrentSiteName) .Culture(mCultureName) .CombineWithDefaultCulture() .TopN(1)); }
public ActionResult Index() { ContactProvider contactProvider = new ContactProvider(); return(View(contactProvider.GetContacts())); }