Ejemplo n.º 1
0
        public ActionResult Delete(int id)
        {
            ViewBag.ProductType_ID = new SelectList(SanphamService.GetAllLoaisanpham(), "ID", "ProductTypeName");
            var model = SanphamService.GetById(id);

            return(PartialView("_Delete", model));
        }
Ejemplo n.º 2
0
        public ActionResult Edit(int id)
        {
            ViewBag.ProductType_ID = new SelectList(SanphamService.GetAllLoaisanpham(), "ID", "ProductTypeName");
            var model = SanphamService.GetById(id);

            //TODO
            return(View("CreateEdit", model));
        }