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