Пример #1
0
 public NoteRepository()
 {
     var note = new Note
     {
         Name = "Thankful to Microsoft",
         Description = "I am thankful to Microsoft for creating ASP.NET."
     };
     Add(note);
 }
Пример #2
0
 public void Update(Note note)
 {
     Notes[note.Key] = note;
 }
Пример #3
0
 public void Add(Note note)
 {
     note.Key = Guid.NewGuid().ToString();
     Notes[note.Key] = note;
 }