void CreateNewNoteMethod(object arg) { FactoryManager myManager = new FactoryManager(); myManager.GetNoteManager().CreateNewNote(note.NoteText, repair.RepairID); RefreshAction(); CloseAction(); }
void PopulateNotes() { FactoryManager myManager = new FactoryManager(); List<NoteDTO> result = myManager.GetNoteManager().GetNotesByRepair(this.repairID); notes = new ObservableCollection<NoteViewModel>((from note in result select new NoteViewModel() { NoteID = note.ID, NoteText = note.NoteText, DateCreatedAsUtcTime = note.DateCreatedAsUtcTime, RepairID = note.RepairID }).ToList()); }