Exemplo n.º 1
0
        public ActionResult Edit(int id)
        {
            IEnumerable <Category> categories = categoryAppService.GetAll();
            IEnumerable <Color>    Colors     = colorAppService.GetAll();

            ViewBag.categories = categories;
            ViewData["Colors"] = Colors;
            Product product = productAppService.GetById(id);

            return(View(product));
        }