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