Пример #1
0
        public ActionResult DeleteConfirmed(string id)
        {
            CHUYENMON cHUYENMON = db.CHUYENMONs.Find(id);

            db.CHUYENMONs.Remove(cHUYENMON);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
Пример #2
0
 public ActionResult Edit([Bind(Include = "TenCM,MaCM")] CHUYENMON cHUYENMON)
 {
     if (ModelState.IsValid)
     {
         db.Entry(cHUYENMON).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(cHUYENMON));
 }
Пример #3
0
        public ActionResult Create([Bind(Include = "TenCM,MaCM")] CHUYENMON cHUYENMON)
        {
            if (ModelState.IsValid)
            {
                db.CHUYENMONs.Add(cHUYENMON);
                db.SaveChanges();
                return(RedirectToAction("Index"));
            }

            return(View(cHUYENMON));
        }
Пример #4
0
        // GET: CHUYENMONs/Delete/5
        public ActionResult Delete(string id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            CHUYENMON cHUYENMON = db.CHUYENMONs.Find(id);

            if (cHUYENMON == null)
            {
                return(HttpNotFound());
            }
            return(View(cHUYENMON));
        }
Пример #5
0
 public int DataInsertCHUYENMON(CHUYENMON ObjCHUYENMON)
 {
     return(PDInsertCHUYENMON(ObjCHUYENMON.cmid, ObjCHUYENMON.macm, ObjCHUYENMON.tencm));
 }
Пример #6
0
 public DataTable DataDetailsCHUYENMON(CHUYENMON ObjCHUYENMON)
 {
     return(PDDetailsCHUYENMON(ObjCHUYENMON.cmid));
 }
Пример #7
0
 public int DataUpdateCHUYENMON(CHUYENMON ObjCHUYENMON)
 {
     return(PDUpdateCHUYENMON(ObjCHUYENMON.cmid, ObjCHUYENMON.macm, ObjCHUYENMON.tencm));
 }
Пример #8
0
 public int DataDeleteCHUYENMON(CHUYENMON ObjCHUYENMON)
 {
     return(PDDeleteCHUYENMON(ObjCHUYENMON.cmid));
 }
Пример #9
0
        public int Insert(CHUYENMON ObjCHUYENMON)
        {
            DataCHUYENMON objData = new DataCHUYENMON();

            return(objData.DataInsertCHUYENMON(ObjCHUYENMON));
        }
Пример #10
0
        public DataTable Details(CHUYENMON ObjCHUYENMON)
        {
            DataCHUYENMON objData = new DataCHUYENMON();

            return(objData.DataDetailsCHUYENMON(ObjCHUYENMON));
        }
Пример #11
0
        public int Delete(CHUYENMON ObjCHUYENMON)
        {
            DataCHUYENMON objData = new DataCHUYENMON();

            return(objData.DataDeleteCHUYENMON(ObjCHUYENMON));
        }
Пример #12
0
        public int Update(CHUYENMON ObjCHUYENMON)
        {
            DataCHUYENMON objData = new DataCHUYENMON();

            return(objData.DataUpdateCHUYENMON(ObjCHUYENMON));
        }