public virtual async Task DeleteUserNotificationAsync(NotificationGetByIdDto notificationGetById) { var notify = await _userNotificationRepository .GetByIdAsync(CurrentUser.GetId(), notificationGetById.NotificationId); await _userNotificationRepository.DeleteAsync(notify.Id); }
public virtual async Task <NotificationInfo> GetAsync(NotificationGetByIdDto notificationGetById) { return(await _notificationAppService.GetAsync(notificationGetById)); }
public virtual async Task DeleteUserNotificationAsync(NotificationGetByIdDto notificationGetById) { await _notificationAppService.DeleteUserNotificationAsync(notificationGetById); }
public virtual async Task <NotificationInfo> GetAsync(NotificationGetByIdDto notificationGetById) { var notification = await _notificationRepository.GetByIdAsync(notificationGetById.NotificationId); return(ObjectMapper.Map <Notification, NotificationInfo>(notification)); }
public virtual async Task DeleteAsync(NotificationGetByIdDto notificationGetById) { await _notificationRepository.DeleteAsync(notificationGetById.NotificationId); }