Esempio n. 1
0
        public static FollowMailSentEntity Create(string userId, string projectId = "")
        {
            var result = new FollowMailSentEntity
            {
                PartitionKey = GeneratePartitionKey(),
                RowKey       = GenerateRowKey(userId, projectId),
                UserId       = userId,
                ProjectId    = projectId
            };

            return(result);
        }
Esempio n. 2
0
        public async Task <IEnumerable <IFollowMailSentData> > GetFollowAsync()
        {
            var partitionKey = FollowMailSentEntity.GeneratePartitionKey();

            return(await _mailSentStorage.GetDataAsync(partitionKey));
        }
Esempio n. 3
0
 public async Task SaveFollowAsync(string userId, string projectId)
 {
     var newEntity = FollowMailSentEntity.Create(userId, projectId);
     await _mailSentStorage.InsertAsync(newEntity);
 }