Exemple #1
0
 internal static NoteTypeModel GenerateNoteTypeModelFromDTO(NoteTypeDTO noteType)
 {
     return(new NoteTypeModel()
     {
         ID = noteType.ID,
         Name = noteType.Name,
         LastEdited = noteType.LastEdited
     });
 }
Exemple #2
0
 internal static IEnumerable <NoteTypeDTO> GetAll(DndDmHelperContext context)
 {
     return(context.NoteTypes.Select(e => NoteTypeDTO.GenerateDTOFromNoteType(e)));
 }