public ActionResult Create() { var vm = new ProductViewModel(); ViewBag.Categories = new SelectList(_categoryApplication.List(), "Id", "Name"); return(View(vm)); }
// GET: Category public ActionResult Index() { return(View(_categoryApplication.List())); }