The startpage and navigation bars starting to look well

This commit is contained in:
2019-01-16 22:56:13 +01:00
parent 88641f2a20
commit b6bf2776a8
8 changed files with 101 additions and 35 deletions

View File

@ -4,6 +4,7 @@ using System.Linq;
using System.Web;
using System.Web.Mvc;
using Vidly.Models;
using Vidly.ViewModels;
namespace Vidly.Controllers
{
@ -13,11 +14,22 @@ namespace Vidly.Controllers
public ActionResult Random()
{
var movie = new Movie() { Name = "Shrek!" };
var customers = new List<Customer>
{
new Customer {Name="Customer 1"},
new Customer {Name="Customer 2"}
};
//var viewResult = new ViewResult();
//viewResult.ViewData.Model = movie;
return View(movie);
var viewModel = new RandomMovieViewModel() {
Movie = movie,
Customers = customers
};
return View(viewModel);
//return View(movie);
//return Content("Hello World");
//return HttpNotFound();
//return new EmptyResult();