public ActionResult List(string preLoaded)
        {
            var page          = 1;
            var pageAmount    = 20;
            var sortDirection = -1;

            var listState             = State.GetCollection();
            var listCity              = Address.GetCities();
            var pagedListShowcaseItem = new PagedList <ShowcaseItem>(new List <ShowcaseItem>(), page, pageAmount, 0, 0);

            if (string.IsNullOrEmpty(preLoaded))
            {
                pagedListShowcaseItem = ShowcaseItem.GetCollection(null, null, null, null, null, null, null, null, null, null, sortDirection, null, page, pageAmount, null);
            }

            var showcaseItemTags = new string[0];

            this.ViewBag.PagedListShowcaseItem = pagedListShowcaseItem;
            this.ViewBag.ListState             = listState;
            this.ViewBag.ListCity = listCity;

            this.ViewBag.ShowcaseItemTags = showcaseItemTags;
            this.ViewBag.SortDirection    = sortDirection;
            this.ViewBag.Page             = page;
            this.ViewBag.PageAmount       = pageAmount;

            return(this.View());
        }
        /// <summary>
        ///
        /// </summary>
        /// <returns></returns>
        public ActionResult VirtualMagazine()
        {
            PagedList <ShowcaseItem> pagedListShowcaseItem = ShowcaseItem.GetCollection(1, 6);

            this.ViewBag.PagedListShowcaseItem = pagedListShowcaseItem;

            return(this.View());
        }
        /// <summary>
        /// (Debug View Only)
        /// </summary>
        /// <returns></returns>
        public ActionResult Home2()
        {
            var listFeaturedShowcaseItem = ShowcaseItem.GetCollection(1, true);
            var listState = State.GetCollection();
            var listCity  = Address.GetCities();

            this.ViewBag.ListFeaturedShowcaseItem = listFeaturedShowcaseItem;
            this.ViewBag.ListState = listState;
            this.ViewBag.ListCity  = listCity;

            return(this.View());
        }
        public ActionResult List(int?stateId, string city, double?listPriceMin, double?listPriceMax,
                                 int?bedsMin, int?bedsMax, int?bathsMin, int?bathsMax, string genericFilter,
                                 int?page, int?pageAmount, int?sortDirection, string sortBy, string[] showcaseItemTags)
        {
            page          = page ?? 1;
            pageAmount    = pageAmount ?? 20;
            sortDirection = sortDirection ?? -1;

            var pagedListShowcaseItem = ShowcaseItem.GetCollection(stateId, city, listPriceMin, listPriceMax, bedsMin, bedsMax, bathsMin, bathsMax, genericFilter, sortBy, sortDirection.Value, null, page, pageAmount, showcaseItemTags);

            var listState = State.GetCollection();
            var listCity  = Address.GetCities();

            showcaseItemTags = showcaseItemTags ?? new string[0];

            this.ViewBag.PagedListShowcaseItem = pagedListShowcaseItem;
            this.ViewBag.ListState             = listState;
            this.ViewBag.ListCity = listCity;

            this.ViewBag.StateId          = stateId;
            this.ViewBag.City             = city;
            this.ViewBag.ListPriceMin     = listPriceMin;
            this.ViewBag.ListPriceMax     = listPriceMax;
            this.ViewBag.BedsMin          = bedsMin;
            this.ViewBag.BedsMax          = bedsMax;
            this.ViewBag.BathsMin         = bathsMin;
            this.ViewBag.BathsMax         = bathsMax;
            this.ViewBag.GenericFilter    = genericFilter;
            this.ViewBag.ShowcaseItemTags = showcaseItemTags;

            this.ViewBag.SortBy        = sortBy;
            this.ViewBag.SortDirection = sortDirection;
            this.ViewBag.Page          = page;
            this.ViewBag.PageAmount    = pageAmount;

            return(this.View());
        }