Ejemplo n.º 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;
        }
Ejemplo n.º 2
0
 public void Remove(NoteViewModel Note)
 {
     this.Notes.Remove(Note);
 }