public static DomainLesson FromAppLessonToDomainLesson(this AppLesson item) { return(new DomainLesson { Id = item.Id, Name = item.Name, StudentNumber = item.StudentNumber }); }
public ActionResult UpdateLesson(AppLesson value) { service.UpdateLesson(value.FromAppLessonToDomainLesson()); return(View("Contact")); }
public ActionResult UpdateLesson(int id) { AppLesson lesson = service.GetLesson(id).FromDomainLessonToAppLesson(); return(View(lesson)); }