Esempio n. 1
0
        // GET: SubCategories/Create
        public ActionResult Create()
        {
            var viewModel = new SubCategoriesViewModel();

            viewModel.GetCategories = _utilitiesManager.GetAllCategories();
            return(View(viewModel));
        }
Esempio n. 2
0
        // GET: Product/Create
        public ActionResult Create()
        {
            var model = new ProductViewModel();

            model.GetAllSubCategories = _utilities.GetAllSubCategories();
            model.GetAllCategories    = _utilities.GetAllCategories();

            return(View(model));
        }