Skip to content

Instantly share code, notes, and snippets.

@igormoochnick
Created July 21, 2012 01:48
Show Gist options
  • Save igormoochnick/3154215 to your computer and use it in GitHub Desktop.
Save igormoochnick/3154215 to your computer and use it in GitHub Desktop.
Asp.Net Mvc 4 controller route with a Model injection into a view
//
// GET: /Home/Hello
public ActionResult Hello()
{
var serverInfo = new ServerInfo {Id = "Smart Server "};
return View(serverInfo);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment