How to require parameters in action
<p>I want to validate that a parameter is present in the action.</p>

<pre><code>public string PorCarrera([Required] DateTime fechaDesde, [Required] DateTime fechaHasta, string carrera = null) {
            return InformacionInscripcionesViewModel.GetTotalesInscripcionesPorCarrera(fechaDesde, fechaHasta, carrera);
        }
</code></pre>

<p>I would expect the framework to throw a <code>BadRequest</code> when calling the action without parameters but it is not happening.</p>

<p>All examples talk about <code>modelState.IsValid</code> but I don't have any model that represents this data, because these are just queries to a DB.</p>