コード例 #1
0
        public ActionResult DeleteConfirmed(int id)
        {
            CAJAS_PagosPredial cAJAS_PagosPredial = db.CAJAS_PagosPredial.Find(id);

            db.CAJAS_PagosPredial.Remove(cAJAS_PagosPredial);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
コード例 #2
0
 public ActionResult Edit([Bind(Include = "IdPago,IdFolio,Clave,NumeroDeCuenta,NombreSolicitante,ApellidoPaternoSolicitante,ApellidoMaternoSolicitante,IdUsuario,BimestresPagados,AñoPagado,FolioOperacion")] CAJAS_PagosPredial cAJAS_PagosPredial)
 {
     if (ModelState.IsValid)
     {
         db.Entry(cAJAS_PagosPredial).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(cAJAS_PagosPredial));
 }
コード例 #3
0
        // GET: CAJAS_PagosPredial/Delete/5
        public ActionResult Delete(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            CAJAS_PagosPredial cAJAS_PagosPredial = db.CAJAS_PagosPredial.Find(id);

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