Ejemplo n.º 1
0
 public static CourseModuleDto AsDto(this CourseModuleDocument document)
 {
     return(new CourseModuleDto
     {
         Id = document.Id,
         Description = document.Description,
         ModuleName = document.ModuleName
     });
 }
Ejemplo n.º 2
0
 public static CourseModule AsEntity(this CourseModuleDocument document)
 {
     return(new CourseModule(document.Id, document.CourseId, document.ModuleName, document.ModuleOrder,
                             document.Description, document.Episodes));
 }