Beispiel #1
0
        public ActionResult DeleteConfirmed(string id)
        {
            CHUYENMON cHUYENMON = db.CHUYENMONs.Find(id);

            db.CHUYENMONs.Remove(cHUYENMON);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
Beispiel #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));
 }
Beispiel #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));
        }
Beispiel #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));
        }
Beispiel #5
0
 public int DataInsertCHUYENMON(CHUYENMON ObjCHUYENMON)
 {
     return(PDInsertCHUYENMON(ObjCHUYENMON.cmid, ObjCHUYENMON.macm, ObjCHUYENMON.tencm));
 }
Beispiel #6
0
 public DataTable DataDetailsCHUYENMON(CHUYENMON ObjCHUYENMON)
 {
     return(PDDetailsCHUYENMON(ObjCHUYENMON.cmid));
 }
Beispiel #7
0
 public int DataUpdateCHUYENMON(CHUYENMON ObjCHUYENMON)
 {
     return(PDUpdateCHUYENMON(ObjCHUYENMON.cmid, ObjCHUYENMON.macm, ObjCHUYENMON.tencm));
 }
Beispiel #8
0
 public int DataDeleteCHUYENMON(CHUYENMON ObjCHUYENMON)
 {
     return(PDDeleteCHUYENMON(ObjCHUYENMON.cmid));
 }
Beispiel #9
0
        public int Insert(CHUYENMON ObjCHUYENMON)
        {
            DataCHUYENMON objData = new DataCHUYENMON();

            return(objData.DataInsertCHUYENMON(ObjCHUYENMON));
        }
Beispiel #10
0
        public DataTable Details(CHUYENMON ObjCHUYENMON)
        {
            DataCHUYENMON objData = new DataCHUYENMON();

            return(objData.DataDetailsCHUYENMON(ObjCHUYENMON));
        }
Beispiel #11
0
        public int Delete(CHUYENMON ObjCHUYENMON)
        {
            DataCHUYENMON objData = new DataCHUYENMON();

            return(objData.DataDeleteCHUYENMON(ObjCHUYENMON));
        }
Beispiel #12
0
        public int Update(CHUYENMON ObjCHUYENMON)
        {
            DataCHUYENMON objData = new DataCHUYENMON();

            return(objData.DataUpdateCHUYENMON(ObjCHUYENMON));
        }