Exemple #1
0
        public ActionResult DeleteConfirmed(string id)
        {
            PeriodoConfiguracion periodoconfiguracion = db.PeriodoConfiguracions.Find(id);

            db.PeriodoConfiguracions.Remove(periodoconfiguracion);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
Exemple #2
0
 public ActionResult Edit([Bind(Include = "RFC,Periodo")] PeriodoConfiguracion periodoconfiguracion)
 {
     if (ModelState.IsValid)
     {
         db.Entry(periodoconfiguracion).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(periodoconfiguracion));
 }
Exemple #3
0
        public ActionResult Create([Bind(Include = "RFC,Periodo")] PeriodoConfiguracion periodoconfiguracion)
        {
            if (ModelState.IsValid)
            {
                db.PeriodoConfiguracions.Add(periodoconfiguracion);
                db.SaveChanges();
                return(RedirectToAction("Index"));
            }

            return(View(periodoconfiguracion));
        }
Exemple #4
0
        // GET: /PeriodoConfiguracion/Delete/5
        public ActionResult Delete(string id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            PeriodoConfiguracion periodoconfiguracion = db.PeriodoConfiguracions.Find(id);

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