riskfirst / riskfirst.hateoas

Powerful HATEOAS functionality for .NET web api
MIT License
78 stars 25 forks source link

Cannot add pagelinks, getting NullReferenceException #19

Closed snippetkid closed 5 years ago

snippetkid commented 5 years ago

While trying to call linksService.AddLinksAsync(result) I am getting NullReferenceException.

at RiskFirst.Hateoas.DefaultRouteMap.GetCurrentRoute() at RiskFirst.Hateoas.DefaultLinksService.d__8`1.MoveNext()

Is there a documentation where it shows an example of using page links?

jamiecoh commented 5 years ago

Almost all of the samples in https://github.com/riskfirst/riskfirst.hateoas/tree/master/Samples show using AddLinksAsync. If you can share more of your project I can take a look at your issue.