public async Task SaveUserNotificationAsync(string userId, string storyId)
        {
            var notification = new UserStoryNotification(userId, storyId, DateTime.Now);

            notification.Id = Guid.NewGuid().ToString("N");

            await Client.CreateDocumentAsync(
                UriFactory.CreateDocumentCollectionUri(
                    _databaseName, NOTIFICATION_COLLECTION_NAME),
                notification);
        }
Ejemplo n.º 2
0
        public async Task SaveUserNotificationAsync(string userId, string storyId)
        {
            var notification = new UserStoryNotification(userId, storyId, DateTime.Now);

            _notifications.Add(notification);
        }