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

            return(View(lecture));
        }