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

            model.Suppliers = services.GetAllSuppliers();

            return(View(model));
        }