public async Task <ITermsPageData> GetAsync(string projectId) { var partitionKey = TermsPageEntity.GeneratePartitionKey(); var rowKey = TermsPageEntity.GenerateRowKey(projectId); var data = await _termsPageTableStorage.GetDataAsync(partitionKey, rowKey); return(data); }
public static TermsPageEntity Create(string projectId, string content) { var result = new TermsPageEntity { PartitionKey = GeneratePartitionKey(), RowKey = GenerateRowKey(projectId), ProjectId = projectId, Content = content }; return(result); }
public async Task SaveAsync(string projectId, string content) { var newEntity = TermsPageEntity.Create(projectId, content); await _termsPageTableStorage.InsertOrMergeAsync(newEntity); }