public async Task DeleteAllUserNotifications(DeleteAllUserNotificationsInput input) { await _userNotificationManager.DeleteAllUserNotificationsAsync( AbpSession.ToUserIdentifier(), input.State, input.StartDate, input.EndDate); }
/// <summary> /// Deletes all notifications of a user. /// </summary> /// <param name="userNotificationManager">User notificaiton manager</param> /// <param name="userId">The user id.</param> public static void DeleteAllUserNotificationsAsync(this IUserNotificationManager userNotificationManager, long userId) { AsyncHelper.RunSync(() => userNotificationManager.DeleteAllUserNotificationsAsync(userId)); }
/// <summary> /// Deletes all notifications of a user. /// </summary> /// <param name="userNotificationManager">User notificaiton manager</param> /// <param name="user">The user id.</param> public static void DeleteAllUserNotifications(this IUserNotificationManager userNotificationManager, UserIdentifier user) { AsyncHelper.RunSync(() => userNotificationManager.DeleteAllUserNotificationsAsync(user)); }
public async Task DeleteAllAsync(UserNotificationState?state = null, DateTime?startDate = null, DateTime?endDate = null) { await _userNotificationManager.DeleteAllUserNotificationsAsync(CurrentUser.Id.Value, state, startDate, endDate); }