コード例 #1
0
        // GET: Admin/Product

        public ActionResult Index()
        {
            ProductsListingModel model = new ProductsListingModel();

            model.Products  = productServices.GetAllProducts();
            model.MainMenus = mainServices.GetAllMainMenus();
            model.SubMenus  = subServices.GetAllSubMenus();
            model.Brands    = brandServices.GetAllBrands();
            model.Tags      = tagServices.GetAllTags();
            model.Suppliers = supplierServices.GetAllSuppliers();

            return(View(model));
        }
コード例 #2
0
        // GET: Admin/Tag
        public ActionResult Index()
        {
            TagListingModel model = new TagListingModel();

            model.Tags = services.GetAllTags();

            return(View(model));
        }