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 }); }
public async Task AddNoteAsync(MRNote note) { var entity = note.ToTableEntity(); await _table.ExecuteAsync(TableOperation.Insert(entity)); }
Task IDataSource.AddNoteAsync(MRNote note) { Notes.Add(note); return(Task.FromResult(0)); }