// GET: SubCategories/Create public ActionResult Create() { var viewModel = new SubCategoriesViewModel(); viewModel.GetCategories = _utilitiesManager.GetAllCategories(); return(View(viewModel)); }
// GET: Product/Create public ActionResult Create() { var model = new ProductViewModel(); model.GetAllSubCategories = _utilities.GetAllSubCategories(); model.GetAllCategories = _utilities.GetAllCategories(); return(View(model)); }