public async Task <IActionResult> LogLevel(
            [FromBody] ChangeLogLevel changeLogLevel,
            [FromServices] IMediator mediator)
        {
            await mediator.Send(new ChangeLogLevelRequest(changeLogLevel));

            return(RedirectToAction(nameof(Index)));
        }
 public ChangeLogLevelRequest(ChangeLogLevel changeLogLevel)
 {
     ChangeLogLevel = changeLogLevel;
 }