/// <summary>
        /// Updates a user notification state.
        /// </summary>
        public async Task UpdateUserNotificationStateAsync(Guid userId, Guid notificationId, UserNotificationState state)
        {
            var result = await _userNotificationRepository.FindAsync(userId, notificationId);

            if (result != null)
            {
                result.State = state;
                await _userNotificationRepository.UpdateAsync(result);
            }
        }
 public Task <UserNotification?> FindAsync(Guid id)
 {
     return(repository.FindAsync(id));
 }
Beispiel #3
0
 public Task <UserNotification?> FindAsync(Guid id,
                                           CancellationToken ct = default)
 {
     return(repository.FindAsync(id, ct));
 }