public ActionResult CreateSectionPanel(SectionPanel section) { if (ModelState.IsValid) { respository.AddSectionPanel(section); return(RedirectToAction("Index")); } return(View(section)); }