public ActionResult Create()
        {
            var vm = new ProductViewModel();

            ViewBag.Categories = new SelectList(_categoryApplication.List(), "Id", "Name");

            return(View(vm));
        }
Exemple #2
0
 // GET: Category
 public ActionResult Index()
 {
     return(View(_categoryApplication.List()));
 }