I have to write a code in C# to edit table entity. I have got this far but ".Edit" doesn't exist and it doesn't edit when I run and test. Would you know what is wrong there, please?
protected void btnEdit_Click(object sender, EventArgs e)
{
string rowKey = GetRowKeyFirstSelectedMessage();
CloudTable myMessagesCloudTable = GetMessagesCloudTable();
TableOperation retrieveOperation = TableOperation.Retrieve<MessageEntity>("P1", rowKey);
TableResult retrieveResult = myMessagesCloudTable.Execute(retrieveOperation);
MessageEntity editMessage = (MessageEntity)retrieveResult.Result;
txtAuthor.Text = editMessage.Author;
txtMessage.Text = editMessage.MessageText;
TableOperation editOperation = TableOperation.Edit(editMessage);
myMessagesCloudTable.Execute(editOperation);
dataListMessages.DataBind();
}