public ActionResult NewHomePage(HomePageContentInformation content) { if (ModelState.IsValid) { using (var iRepo = new ImportRepository()) { iRepo.UpsertHomePageContent(content); return(RedirectToAction("Index", "Home")); } } return(View()); }