public async Task <IGlobalCheckInfo> DeleteAsync(DateTime timestamp) { var partitionKey = GlobalCheckInfoEntity.GeneratePartitionKey(timestamp); var rowKey = GlobalCheckInfoEntity.GenerateRowKey(timestamp); return(await _tableStorage.DeleteAsync(partitionKey, rowKey)); }
public async Task <IGlobalCheckInfo> AddOrUpdateAsync(IGlobalCheckInfo entity) { var newEntity = GlobalCheckInfoEntity.Create(entity); await _tableStorage.InsertAndGenerateRowKeyAsDateTimeAsync(newEntity, newEntity.StartDateTime); return(newEntity); }
public async Task <IEnumerable <IGlobalCheckInfo> > GetAllByYearAsync(int year) { var partitionKey = GlobalCheckInfoEntity.GeneratePartitionKey(year); return(await _tableStorage.GetDataAsync(partitionKey)); }