public FirstPage() { InitializeComponent(); BindingContext = new FirstPageViewModels() { Navigation = this.Navigation }; }
public ActionResult Index() { FirstPageViewModels obj = new FirstPageViewModels(); obj.MovieListMostRecent = MostRecent(); obj.MovieListMostPopular = MostPopular(); obj.MovieListCheapest = Cheapest(); obj.MovieListOldest = Oldest(); obj.MovieListRecentlyBought = RecentlyBought(); return(View(obj)); //obj is singular item! That means that the view should be of //a single item as well: //@model Shoop.Models.FirstPageViewModels in the Index.cshtml page }