public static MailSentEntity Create(string partition, string userId, string projectId = "") { var result = new MailSentEntity { PartitionKey = GeneratePartitionKey(partition), RowKey = GenerateRowKey(userId, projectId), UserId = userId, ProjectId = projectId }; return(result); }
public async Task <IEnumerable <IMailSentData> > GetFollowAsync() { var partitionKey = MailSentEntity.GeneratePartitionKey("Follow"); return(await _mailSentStorage.GetDataAsync(partitionKey)); }
public async Task <IEnumerable <IMailSentData> > GetRegisterAsync(string userId) { var partitionKey = MailSentEntity.GeneratePartitionKey("Register"); return(await _mailSentStorage.GetDataAsync(partitionKey)); }
public async Task SaveFollowAsync(string userId, string projectId) { var newEntity = MailSentEntity.Create("Follow", userId, projectId); await _mailSentStorage.InsertAsync(newEntity); }