public ActionResult NewHomePage() { using (var iRepository = new ImportRepository()) { return(View(iRepository.GetHomePageContent())); } }
public static string GetHomePageContentHTML() { using (var iRepo = new ImportRepository()) { var contentArea = iRepo.GetHomePageContent(); if (contentArea != null) { return(contentArea.ContentArea); } } return(""); }