FavoriteLoadingAdd to favorites

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 this
pageIndex=1$sortBy=Name

        public ActionResult Index(int? pageIndex, string sortBy){
            if(!pageIndex.HasValue)
                pageIndex = 1;

            if (String.IsNullOrWhiteSpace(sortBy))
                sortBy = "Name";

            return Content(String.Format("pageIndex={0}$sortBy={1}", pageIndex, sortBy));
        }

Pin It on Pinterest

Share This