// 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));
        }
Esempio n. 2
0
        // GET: Admin/Supplier
        public ActionResult Index()
        {
            SupplierListingModel model = new SupplierListingModel();

            model.Suppliers = services.GetAllSuppliers();

            return(View(model));
        }