// GET: Home
        public ActionResult Index()
        {
            var cars = HelloModel.GetCars();

            ViewBag.DustinCreatedThisValue = "Hello MVC";
            return(View(cars));
        }
Beispiel #2
0
        // GET: Home
        public ActionResult Index()
        {
            var cars = HelloModel.GetCars();

            ViewBag.HelloWorld = "Hello World";// This is the second way to render "Hello World" on the Index.cshtml view
            return(View(cars));
        }
Beispiel #3
0
        // GET: Home
        public ActionResult Index()
        {
            var cars = HelloModel.GetCars();

            ViewBag.myValue = "Hello MVC";
            return(View(cars));
        }
Beispiel #4
0
        // GET: Home
        public ActionResult Index()
        {
            var cars = HelloModel.GetCars();           // to get the cars

            ViewBag.AntoCreateThisValue = "Hello MVC"; // inline

            return(View(cars));
        }
Beispiel #5
0
        // GET: Home
        public ActionResult Index()
        {
            var cars = HelloModel.GetCars();

            ViewBag.MainHeadline = "Main Headline";

            return(View(cars));
        }
Beispiel #6
0
        // GET: Home
        public ActionResult Index()
        {
            var cars = HelloModel.GetCars();

            return(View(cars));
        }