public ActionResult Create([Bind(Include = "Name")] Lecture lecture) { if (ModelState.IsValid) { _lectureService.Add(lecture.Name); _unitOfWork.Commit(); return(RedirectToAction("Index")); } return(View(lecture)); }
public ActionResult Create([Bind(Include = "Name")] Lecture lecture) { if (ModelState.IsValid) { _lectureService.Add(lecture.Name); _unitOfWork.Commit(); return(RedirectToAction("Index")); } return(View(lecture)); }