public void Create_Lesson(int id, [FromBody] string value) { DomainLesson lesson = new DomainLesson { Name = value, StudentId = id }; students.Create_Lesson(lesson); }
public static Lesson FromDomLesson_ToLesson(this DomainLesson item) { return(new Lesson { Name = item.Name, StudentId = item.StudentId }); }
public static RepoLesson FromDomainLessonToRepoLesson(this DomainLesson item) { return(new RepoLesson { Id = item.Id, Name = item.Name, StudentNumber = item.StudentNumber }); }
public void Create_Lesson(DomainLesson item) { _studentRepository.Lessons.Create(item.FromDomLesson_ToLesson()); }
public void UpdateLesson(DomainLesson lesson) { _studentRepository.Lessons.Update(lesson.FromDomainLessonToRepoLesson()); }