How to pass a model to a Razor view from Nancy
I have Razor woking with Nancy, but can't figure out how to make the view see the model.
I am rending the model with this code (where t is the model instance).
return View[ "views/addshortcut.cshtml", t ];
How can I make the Razor see t?
The model is there, just start using it. If you are talking about intellisense then you can use the @inherit statement in razor.. something like