public async Task <IPersonalData> GetAsync(string id) { var partitionKey = PersonalDataEntity.GeneratePartitionKey(); var rowKey = PersonalDataEntity.GenerateRowKey(id); return(await _tableStorage.GetDataAsync(partitionKey, rowKey)); }
public static PersonalDataEntity Create(IPersonalData src) { var result = new PersonalDataEntity { PartitionKey = GeneratePartitionKey(), RowKey = GenerateRowKey(src.Id), Email = src.Email, Regitered = src.Regitered }; result.Update(src); return(result); }