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