I'm trying to make an action with 2 parameters, 1 is optional I'm trying with
[HttpGet, Route("movies/date/{dateMin}&{dateMax}")]
But it's not working. 'dateMax' is optional parameter, and when it's not given it should be the same value as dateMin Already tried with
[HttpGet, Route("movies/date/{dateMin}&{dateMax?}")]
But it's not working either. I dont want to have something like
{dateMin}/{dateMax}
Is there other possibility to do that?