C# Class EasyTeach.Data.Repostitories.LessonRepository

Inheritance: ILessonRepository
Afficher le fichier Open project: WadeOne/EasyTeach Class Usage Examples

Méthodes publiques

Méthode Description
CreateLesson ( ILessonDto lesson ) : void
GetLessonById ( int lessonId ) : ILessonDto
GetLessons ( ) : IQueryable
LessonRepository ( EasyTeachContext context ) : System
RemoveLesson ( int lessonId ) : void
UpdateLesson ( ILessonDto lesson ) : void

Method Details

CreateLesson() public méthode

public CreateLesson ( ILessonDto lesson ) : void
lesson ILessonDto
Résultat void

GetLessonById() public méthode

public GetLessonById ( int lessonId ) : ILessonDto
lessonId int
Résultat ILessonDto

GetLessons() public méthode

public GetLessons ( ) : IQueryable
Résultat IQueryable

LessonRepository() public méthode

public LessonRepository ( EasyTeachContext context ) : System
context EasyTeach.Data.Context.EasyTeachContext
Résultat System

RemoveLesson() public méthode

public RemoveLesson ( int lessonId ) : void
lessonId int
Résultat void

UpdateLesson() public méthode

public UpdateLesson ( ILessonDto lesson ) : void
lesson ILessonDto
Résultat void