[HttpGet("date/{forDate:DateTime}", Name = "GetWithDate")] // didn't help/change anything //[HttpGet("date/{forDate}", Name = "GetWithDate")] public IActionResult GetByDate(DateTime forDate) // [FromQuery] didn't help either. (ARG!) { List <OrderRecord> ordersByDate; try { ordersByDate = _ordersServices.GetOrdersByDate(forDate); if (ordersByDate == null || !ordersByDate.Any()) { return(NotFound()); } } catch (Exception oEx) { // TODO: if I have time to add logging //_staticLoggerInstanceWrapper.LogError(GetType(), oEx); return(StatusCode(StatusCodes.Status500InternalServerError, oEx)); } return(Ok(ordersByDate)); }