Beispiel #1
0
 public FirstPage()
 {
     InitializeComponent();
     BindingContext = new FirstPageViewModels()
     {
         Navigation = this.Navigation
     };
 }
Beispiel #2
0
        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
        }