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)); }
public ActionResult Create() { ViewBag.ProductType_ID = new SelectList(SanphamService.GetAllLoaisanpham(), "ID", "ProductTypeName"); //TODO return(View("CreateEdit")); }
// GET: SanPham public ActionResult Index(SanphamSearchModel searchModel) { ViewBag.ProductType_ID = new SelectList(SanphamService.GetAllLoaisanpham(), "ID", "ProductTypeName"); return(View(searchModel)); }