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

            db.SIS_HectareasCobradas.Remove(sIS_HectareasCobradas);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
コード例 #2
0
 public ActionResult Edit([Bind(Include = "Id,NumeroHectareas,Clave,Cuenta,Precio,AñoDePago")] SIS_HectareasCobradas sIS_HectareasCobradas)
 {
     if (ModelState.IsValid)
     {
         db.Entry(sIS_HectareasCobradas).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(sIS_HectareasCobradas));
 }
コード例 #3
0
        public ActionResult Create([Bind(Include = "Id,NumeroHectareas,Clave,Cuenta,Precio,AñoDePago")] SIS_HectareasCobradas sIS_HectareasCobradas)
        {
            if (ModelState.IsValid)
            {
                db.SIS_HectareasCobradas.Add(sIS_HectareasCobradas);
                db.SaveChanges();
                return(RedirectToAction("Index"));
            }

            return(View(sIS_HectareasCobradas));
        }
コード例 #4
0
        // GET: SIS_HectareasCobradas/Delete/5
        public ActionResult Delete(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            SIS_HectareasCobradas sIS_HectareasCobradas = db.SIS_HectareasCobradas.Find(id);

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