コード例 #1
0
        public ActionResult DeleteConfirmed(string id)
        {
            historial2014 historial2014 = db.historial2014.Find(id);

            db.historial2014.Remove(historial2014);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
コード例 #2
0
 public ActionResult Edit([Bind(Include = "Clave,NumeroDeCuenta,FechaDePago,Cantidad,IdFolio,FolioOperacion,AñoPagado,ApellidoPaterno,ApellidoMaterno,Nombre")] historial2014 historial2014)
 {
     if (ModelState.IsValid)
     {
         db.Entry(historial2014).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(historial2014));
 }
コード例 #3
0
        // GET: historial2014/Delete/5
        public ActionResult Delete(string id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            historial2014 historial2014 = db.historial2014.Find(id);

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