public ActionResult Delete(int id) { ViewBag.ProductType_ID = new SelectList(SanphamService.GetAllLoaisanpham(), "ID", "ProductTypeName"); var model = SanphamService.GetById(id); return(PartialView("_Delete", model)); }
public ActionResult Edit(int id) { ViewBag.ProductType_ID = new SelectList(SanphamService.GetAllLoaisanpham(), "ID", "ProductTypeName"); var model = SanphamService.GetById(id); //TODO return(View("CreateEdit", model)); }