Example #1
0
        public ActionResult DeleteConfirmed(int id)
        {
            SIS_Adeudos sIS_Adeudos = db.SIS_Adeudos.Find(id);

            db.SIS_Adeudos.Remove(sIS_Adeudos);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
Example #2
0
 public ActionResult Edit([Bind(Include = "Id,Adeudo,Clave,NumeroDeCuenta,Recargo,Multa,año,DescuentoGeneral,Bimestre1,Bimestre2,Bimestre3,Bimestre4,Bimestre5,Bimestre6,CondonacionGeneral,CondonacionMulta,CondonacionRecargo,BimestresPagados")] SIS_Adeudos sIS_Adeudos)
 {
     if (ModelState.IsValid)
     {
         db.Entry(sIS_Adeudos).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(sIS_Adeudos));
 }
Example #3
0
        // GET: SIS_Adeudos/Delete/5
        public ActionResult Delete(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            SIS_Adeudos sIS_Adeudos = db.SIS_Adeudos.Find(id);

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