public async Task <bool> HandleAsync(DeleteSharedUserForNotification message)
        {
            var sharedUser = await repository.GetSharedUserById(message.NotificationId, message.SharedId);

            historyRepository.AddSharedUserHistory(new SharedUserHistory(
                                                       message.NotificationId,
                                                       sharedUser.UserId,
                                                       sharedUser.DateAdded,
                                                       SystemTime.UtcNow));
            await context.SaveChangesAsync();

            await repository.RemoveSharedUser(message.NotificationId, message.SharedId);

            await context.SaveChangesAsync();

            return(true);
        }
        public async Task <NotificationSharedUser> HandleAsync(GetSharedUserById message)
        {
            var sharedUser = await repository.GetSharedUserById(message.NotificationId, message.SharedId);

            return(mapper.Map <NotificationSharedUser>(sharedUser));
        }