Пример #1
0
        public virtual async Task DeleteUserNotificationAsync(NotificationGetByIdDto notificationGetById)
        {
            var notify = await _userNotificationRepository
                         .GetByIdAsync(CurrentUser.GetId(), notificationGetById.NotificationId);

            await _userNotificationRepository.DeleteAsync(notify.Id);
        }
Пример #2
0
 public virtual async Task <NotificationInfo> GetAsync(NotificationGetByIdDto notificationGetById)
 {
     return(await _notificationAppService.GetAsync(notificationGetById));
 }
Пример #3
0
 public virtual async Task DeleteUserNotificationAsync(NotificationGetByIdDto notificationGetById)
 {
     await _notificationAppService.DeleteUserNotificationAsync(notificationGetById);
 }
Пример #4
0
        public virtual async Task <NotificationInfo> GetAsync(NotificationGetByIdDto notificationGetById)
        {
            var notification = await _notificationRepository.GetByIdAsync(notificationGetById.NotificationId);

            return(ObjectMapper.Map <Notification, NotificationInfo>(notification));
        }
Пример #5
0
 public virtual async Task DeleteAsync(NotificationGetByIdDto notificationGetById)
 {
     await _notificationRepository.DeleteAsync(notificationGetById.NotificationId);
 }