示例#1
0
        public NoteViewModel AddNew(string Title, string Body)
        {
            NoteViewModel note = new NoteViewModel();
            DateTime date = DateTime.Now;

            note.ID = date.ToString();
            note.DateCreated = date;
            note.DateUpdated = date;
            note.Title = Title;
            note.Body = Body;

            this.Notes.Add(note);

            return note;
        }
示例#2
0
 public void Remove(NoteViewModel Note)
 {
     this.Notes.Remove(Note);
 }