public static async Task <string> InsertRecordToTableStrAsync(CloudTable table, string time, string nickname, string value) { MessageTable message = new MessageTable(); message.Time = time; message.AuthorNickName = nickname; message.Body = value; message.AssignPartitionKey(); message.AssignRowKey(); Message mess = await RetrieveRecordAsync(table, time, nickname); if (mess == null) { TableOperation tableOperation = TableOperation.Insert(message); await table.ExecuteAsync(tableOperation); return("Record inserted"); } else { return("Record exists"); } }