public void AddMailingList(MailingList mailingList) { var tableObject = new Table.MailingList { RowKey = "mailinglist", PartitionKey = mailingList.ListName, Description = mailingList.Description, FromEmailAddress = mailingList.FromEmailAddress }; var insertOperation = TableOperation.Insert(tableObject); _mailingListTable.Value.Execute(insertOperation); }
public void UpdateMailingList(string listName, MailingList mailingList) { var tableObject = new Table.MailingList { Description = mailingList.Description, FromEmailAddress = mailingList.FromEmailAddress, RowKey = "mailinglist", PartitionKey = listName, ETag = "*" }; var replaceOperation = TableOperation.Replace(tableObject); _mailingListTable.Value.Execute(replaceOperation); }