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