public ActionResult DeleteConfirmed(string id) { PeriodoConfiguracion periodoconfiguracion = db.PeriodoConfiguracions.Find(id); db.PeriodoConfiguracions.Remove(periodoconfiguracion); db.SaveChanges(); return(RedirectToAction("Index")); }
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)); }
public ActionResult Create([Bind(Include = "RFC,Periodo")] PeriodoConfiguracion periodoconfiguracion) { if (ModelState.IsValid) { db.PeriodoConfiguracions.Add(periodoconfiguracion); db.SaveChanges(); return(RedirectToAction("Index")); } return(View(periodoconfiguracion)); }
// 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)); }