Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
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).
t
return View[ "views/addshortcut.cshtml", t ];
How can I make the Razor see t?
モデルがあります。使い始めてください。インテリセンスについて話している場合は、かみそりで@inheritステートメントを使用できます。
@inherits Nancy.ViewEngines.Razor.NancyRazorViewBase<YourNameSpace.YourModel>