Пример #1
0
        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));
        }
Пример #2
0
        public async Task <IActionResult> Reveal([FromRoute] RevealToggleRequest revealToggleRequest, CancellationToken cancellationToken = default)
        {
            var reveal = await _mediator.Send(revealToggleRequest, cancellationToken);

            return(Ok(reveal));
        }