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