Пример #1
0
 public ActionResult Edit([Bind(Include = "Key,Name,Create_Date")] Lecture lecture)
 {
     if (ModelState.IsValid)
     {
         Lecture oldLecture = _lectureService.GetLecture(lecture.Key);
         _lectureService.Edit(oldLecture, lecture);
         _unitOfWork.Commit();
         return(RedirectToAction("Index"));
     }
     return(View(lecture));
 }