Пример #1
0
        public ActionResult DeleteConfirmed(long id)
        {
            CANCELADO_SIS_Nota cANCELADO_SIS_Nota = db.CANCELADO_SIS_Nota.Find(id);

            db.CANCELADO_SIS_Nota.Remove(cANCELADO_SIS_Nota);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
Пример #2
0
 public ActionResult Edit([Bind(Include = "id,tipoNota,clave,numeroDeCuenta,idColonia,manzana,nota,fecha")] CANCELADO_SIS_Nota cANCELADO_SIS_Nota)
 {
     if (ModelState.IsValid)
     {
         db.Entry(cANCELADO_SIS_Nota).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(cANCELADO_SIS_Nota));
 }
Пример #3
0
        public ActionResult Create([Bind(Include = "id,tipoNota,clave,numeroDeCuenta,idColonia,manzana,nota,fecha")] CANCELADO_SIS_Nota cANCELADO_SIS_Nota)
        {
            if (ModelState.IsValid)
            {
                db.CANCELADO_SIS_Nota.Add(cANCELADO_SIS_Nota);
                db.SaveChanges();
                return(RedirectToAction("Index"));
            }

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

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