Created
July 21, 2012 01:48
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// 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