Esempio n. 1
0
        public ActionResult ChitietSanphamAuction(int spcm)
        {
            SanphamcanmuaModel spmodel = new SanphamcanmuaModel();
            Sanphamcanmua      temp    = spmodel.getSanphamcanmua(spcm);

            temp.SanPham = spmodel.getSP(temp.MaSP);
            return(View(temp));
        }
Esempio n. 2
0
        public ActionResult DeleteSPCM(int id)
        {
            SanphamcanmuaModel ncc = new SanphamcanmuaModel();

            if (ncc.getSanphamcanmua(id) == null)
            {
                return(HttpNotFound());
            }
            ncc.DeleteSPCM(id);
            return(TimSPCM(null, null));
        }
Esempio n. 3
0
        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));
        }