public static RegisterMailSentEntity Create(string userId) { var result = new RegisterMailSentEntity { PartitionKey = GeneratePartitionKey(), RowKey = GenerateRowKey(userId), UserId = userId }; return(result); }
public async Task <IRegisterMailSentData> GetRegisterAsync(string userId) { var partitionKey = RegisterMailSentEntity.GeneratePartitionKey(); return(await _mailSentStorage.GetDataAsync(partitionKey, userId)); }
public async Task SaveRegisterAsync(string userId) { var newEntity = RegisterMailSentEntity.Create(userId); await _mailSentStorage.InsertAsync(newEntity); }