The Nancy model binding methods are defined as extension methods on the NancyModule
class.
And these extension methods can be found in the Nancy.ModelBinding
namespace.
So you need to using
the Nancy.ModelBinding
namespace to access the Bind()
and BindTo()
methods.
So add this line to your source file:
using Nancy.ModelBinding;