Example #1
0
 internal static MRNotesTableEntity ToTableEntity(this MRNote note)
 {
     return(new MRNotesTableEntity
     {
         Created = note.Created,
         Author = note.Author,
         Description = note.Description,
         Title = note.Title,
         PartitionKey = "MRNotes",
         RowKey = note.Id
     });
 }
Example #2
0
 public async Task AddNoteAsync(MRNote note)
 {
     var entity = note.ToTableEntity();
     await _table.ExecuteAsync(TableOperation.Insert(entity));
 }
Example #3
0
 Task IDataSource.AddNoteAsync(MRNote note)
 {
     Notes.Add(note);
     return(Task.FromResult(0));
 }