예제 #1
0
        public static RegisterMailSentEntity Create(string userId)
        {
            var result = new RegisterMailSentEntity
            {
                PartitionKey = GeneratePartitionKey(),
                RowKey       = GenerateRowKey(userId),
                UserId       = userId
            };

            return(result);
        }
예제 #2
0
        public async Task <IRegisterMailSentData> GetRegisterAsync(string userId)
        {
            var partitionKey = RegisterMailSentEntity.GeneratePartitionKey();

            return(await _mailSentStorage.GetDataAsync(partitionKey, userId));
        }
예제 #3
0
 public async Task SaveRegisterAsync(string userId)
 {
     var newEntity = RegisterMailSentEntity.Create(userId);
     await _mailSentStorage.InsertAsync(newEntity);
 }