public ActionResult ChitietSanphamAuction(int spcm) { SanphamcanmuaModel spmodel = new SanphamcanmuaModel(); Sanphamcanmua temp = spmodel.getSanphamcanmua(spcm); temp.SanPham = spmodel.getSP(temp.MaSP); return(View(temp)); }
public ActionResult DeleteSPCM(int id) { SanphamcanmuaModel ncc = new SanphamcanmuaModel(); if (ncc.getSanphamcanmua(id) == null) { return(HttpNotFound()); } ncc.DeleteSPCM(id); return(TimSPCM(null, null)); }
public ActionResult EditSPCM(int id) { SanphamcanmuaModel sp = new SanphamcanmuaModel(); var s = sp.getSanphamcanmua(id); SanPhamCanMuaEdit model = new SanPhamCanMuaEdit(); model.ID = s.ID; model.Mota = s.Mota; model.Ngayketthuc = s.Ngayketthuc; model.Soluong = s.Soluong; return(View(model)); }