Пример #1
0
 public async Task <IActionResult> PatchNotificationSeen([FromRoute] int id, [FromBody] NotificationPatchDto dto)
 {
     return(await HandleExceptionsWithOk(async() => await notificationService.ChangeSeen(UserName, id, dto.B)));
 }
Пример #2
0
 public async Task SetNotificationSeen(int notificationId, bool to)
 {
     await notificationService.ChangeSeen(Context.UserIdentifier, notificationId, to);
 }