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

            db.CAT_CAJAS_FormaDePago.Remove(cAT_CAJAS_FormaDePago);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
Example #2
0
 public ActionResult Edit([Bind(Include = "Id,NombreFormaDePago")] CAT_CAJAS_FormaDePago cAT_CAJAS_FormaDePago)
 {
     if (ModelState.IsValid)
     {
         db.Entry(cAT_CAJAS_FormaDePago).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(cAT_CAJAS_FormaDePago));
 }
Example #3
0
        public ActionResult Create([Bind(Include = "Id,NombreFormaDePago")] CAT_CAJAS_FormaDePago cAT_CAJAS_FormaDePago)
        {
            if (ModelState.IsValid)
            {
                db.CAT_CAJAS_FormaDePago.Add(cAT_CAJAS_FormaDePago);
                db.SaveChanges();
                return(RedirectToAction("Index"));
            }

            return(View(cAT_CAJAS_FormaDePago));
        }
Example #4
0
        // GET: CAT_CAJAS_FormaDePago/Delete/5
        public ActionResult Delete(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            CAT_CAJAS_FormaDePago cAT_CAJAS_FormaDePago = db.CAT_CAJAS_FormaDePago.Find(id);

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