public ActionResult AddSection(SectionViewModel model)
 {
     model.DateAdded = DateTime.Now;
     service.CreateSection(model.ToBllSection());
     return(RedirectToAction("Index", "Home"));
 }
Beispiel #2
0
 public ActionResult AddSection(SectionViewModel model)
 {
     sectionService.CreateSection(model.ToBllSection());
     return(RedirectToAction("WorkWithSections", "Section"));
 }