NotificationRepo.ReadAll Method

Namespace:
Weavy.Core.Repos
Assembly:
Weavy.Core.dll

ReadAll(int, int?)

Mark all unread notifications for a user as read. Optionally the id of the last viewed notification could be passed in, so that un-viewed notifications aren not marked as read.

public static void ReadAll(int userId, int? id)

Parameters

userId
int

Id of user.

id
int?

Id of the last viewed notification