public void Edit(Lesson lesson)
 {
     var original = this.Find(lesson.Id);
     original.Author = lesson.Author;
     original.Description = lesson.Description;
     original.LessonTitle = lesson.LessonTitle;
     _repo.SaveChanges();
 }
        public ActionResult Create(Lesson lesson)
        {
            if (ModelState.IsValid)
            {
                _service.Create(lesson);
                return RedirectToAction("Index");
            }

            return View();
        }
 // Create Method
 public void Create( Lesson lesson)
 {
     _repo.Add<Lesson>(lesson);
     _repo.SaveChanges();
 }