示例#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);
 }