public async Task <ActionResult <RevealToggleResponse> > Reveal(string toggleType, CancellationToken cancellationToken = default) { var request = new RevealToggleRequest() { ToggleType = toggleType }; var reveal = await _mediator.Send(request, cancellationToken); return(Ok(reveal)); }
public async Task <IActionResult> Reveal([FromRoute] RevealToggleRequest revealToggleRequest, CancellationToken cancellationToken = default) { var reveal = await _mediator.Send(revealToggleRequest, cancellationToken); return(Ok(reveal)); }