コード例 #1
0
        // GET: Products
        public ActionResult Index()
        {
            var model = new ProductsViewModel
            {
                SearchParameter   = new ProductsSearchModel(),
                Products_list     = productsService.IndexDefault().ToList(),
                CategoryID_List   = categoriesService.CategoriesList(),
                Discontinued_List = Source.Source.DiscontinuedList()
            };

            return(View(model));
        }