public async Task <bool> GetLead(int partitionKey) { CloudTable table = await GetTableAsync(); TableOperation operation = TableOperation.Retrieve <T>(partitionKey.ToString(), rowKey); TableResult result = await table.ExecuteAsync(operation); AzureLead lead = result.Result as AzureLead; if (lead.Id == partitionKey) { return(true); } return(false); }
public async Task UpdateLead(AzureLead item) { await this.repository.Update(item); }
public async Task CreateLead(AzureLead item) { await this.repository.Insert(item); }