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

jQuery remove text from input

javascript jquery

Is there a possible way in jQuery to remove a specified value from an input? Like this:

Simple php to Codeigniter

javascript php jquery ajax codeigniter

i am developing my final year project on codeigniter and facing problem i want to click a drop-down value and then it will return table from db but alas i can't do