Example #1
0
        public virtual System.Web.Mvc.ActionResult Search(string search)
        {
            Infrastructure.Render render = new Infrastructure.Render();

            ViewModels.Home.IndexViewModel viewmodel =
                new ViewModels.Home.IndexViewModel
            {
                Body   = render.RenderSearchResult(search),
                Header = render.RenderHeader("Index")
            };

            return(View(model: viewmodel));
        }
Example #2
0
        public virtual System.Web.Mvc.ActionResult SeeMore(System.Guid ItemId)
        {
            Infrastructure.Render render = new Infrastructure.Render();

            ViewModels.Home.IndexViewModel viewmodel =
                new ViewModels.Home.IndexViewModel
            {
                Body   = render.RenderSeeMore(ItemId),
                Header = render.RenderHeader("Index")
            };

            return(View(model: viewmodel));
        }
Example #3
0
        //[System.Web.Mvc.OutputCache(Duration = 60)]
        public virtual System.Web.Mvc.ActionResult Index()
        {
            Infrastructure.Render render = new Infrastructure.Render();

            ViewModels.Home.IndexViewModel viewmodel =
                new ViewModels.Home.IndexViewModel
            {
                Body   = render.RenderPage("Index"),
                Header = render.RenderHeader("Index")
            };

            return(View(model: viewmodel));
        }
Example #4
0
        //[System.Web.Mvc.OutputCache(Duration = 60)]
        public virtual System.Web.Mvc.ActionResult ProductsList(string TypeOfProducts)
        {
            if (TypeOfProducts == "Au" || TypeOfProducts == "Hi" || TypeOfProducts == "All" || TypeOfProducts == "Low")
            {
                Infrastructure.Render render = new Infrastructure.Render();

                ViewModels.Home.IndexViewModel viewmodel =
                    new ViewModels.Home.IndexViewModel
                {
                    Body   = render.RenderPage(TypeOfProducts),
                    Header = render.RenderHeader(TypeOfProducts)
                };

                return(View(model: viewmodel));
            }
            return(new System.Web.Mvc.HttpStatusCodeResult(System.Net.HttpStatusCode.BadRequest));
        }