C# MVC Project Return Vars on a Page

Inside your Controller in this case it’s the Movies Controller.The action Result below is Index so on other words the Home of the Movies Controller. In this action there’s two IF statements. If you load this controller-> Index it will return...

C# Return Methods

namespace Vidly.Controllers { public class MoviesController : Controller { public ActionResult Random() { Movie movie = new Movie() { Name = “Shrek!” }; // THE RETURN METHODS BELOW // return View(movie); // return Content(“Hello World!”); //...

Pin It on Pinterest