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

@inherits Nancy.ViewEngines.Razor.NancyRazorViewBase<YourNameSpace.YourModel>

Need Your Help

inspect the parameters to "use", and pass on the rest?

perl module oop

I have a Perl module and I'd like to be able to pick out the parameters that my my module's user passed in the "use" call. Whichever ones I don't recognize I'd like to pass on. I tried to do this...

Mysql Enterprise Monitor MEM 3.0 Hardware Requirements

mysql linux performance shell monitoring

At work, we are planning to have a dedicated box to run MEM 3.0, we will be monitoring about 30 mysql instances. I wanted to know if anyone has any experience working with MEM 3.0 and what would be...