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); }
public async Task SaveUserNotificationAsync(string userId, string storyId) { var notification = new UserStoryNotification(userId, storyId, DateTime.Now); _notifications.Add(notification); }