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