예제 #1
0
        public ActionResult DeleteConfirmed(int id)
        {
            CIU cIU = db.Tbl_CIU.Find(id);

            db.Tbl_CIU.Remove(cIU);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
예제 #2
0
 public ActionResult Edit([Bind(Include = "Pk_Id_CIU,Codigo_CIU,Descripcion")] CIU cIU)
 {
     if (ModelState.IsValid)
     {
         db.Entry(cIU).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(cIU));
 }
예제 #3
0
        public ActionResult Create([Bind(Include = "Pk_Id_CIU,Codigo_CIU,Descripcion")] CIU cIU)
        {
            if (ModelState.IsValid)
            {
                db.Tbl_CIU.Add(cIU);
                db.SaveChanges();
                return(RedirectToAction("Index"));
            }

            return(View(cIU));
        }
 private void Reset_Click(object sender, RoutedEventArgs e)
 {
     NTBox.Clear();
     NUP.Clear();
     NMP.Clear();
     CIU.Clear();
     CIM.Clear();
     DF.Clear();
     MIT.Clear();
     PIM.Clear();
     isMasked.IsChecked = false;
     Result.Items.Clear();
 }
예제 #5
0
        // GET: CIUs/Delete/5
        public ActionResult Delete(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            CIU cIU = db.Tbl_CIU.Find(id);

            if (cIU == null)
            {
                return(HttpNotFound());
            }
            return(View(cIU));
        }