public class UsersController : ApiControllerBase { [HttpPost("Authenticate")] [ProducesResponseType(StatusCodes.Status200OK, Type = typeof(UsersAuthenticateCommandResult))] public async Task Authenticate(UsersAuthenticateCommand command) { return await Mediator.Send(command); } }