I have a method defined as follows
[Route("public/sites/GetAllForWeb")]
[HttpGet]
public IEnumerable<Domain.Site.Site> GetAllForWeb(DateTime date, int hour, string parameterCode = null)
That is then being called as follows (angular)
return this.http.get<Site[]>("public/sites/GetAllForWeb?date=" + date + "&hour=" + hour + ((parameterCode === undefined) ? "" : "¶meterCode=" + parameterCode)
Unfortunately the call doesn't match any controller methods, I am assuming because of the lack of parameters in the Route attribute.
How should the Route attribute be modified to correctly reflect the method signature?