Get a list of expired notices by user id
Description
Retrieves a list of notices for a specific user.
Package Details
Interface
INoticeManager
Syntax
await NoticeManager.GetByUserId(int userId, int? page = null, int? pageSize = null);
Returns
Task<ICollection<Notice>>
API
GET
/api/v1/users/{userId}/expirednotices
Parameters
Path
id: The user id
Query string (optional)
page: page number
pageSize: size of the page
Returns
200 OK - List of notices
Example
const int userId = 123; var notices = await _noticeManager.GetExpiredNoticesByUserId(userId, 1, 10);