public ActionResult DeleteConfirmed(int id) { SOL_Sectores sOL_Sectores = db.SOL_Sectores.Find(id); db.SOL_Sectores.Remove(sOL_Sectores); db.SaveChanges(); return(RedirectToAction("Index")); }
public ActionResult Edit([Bind(Include = "SECTOR_ID,SECTOR_NOMBRE,AREA_ID,SECTOR_STATUS")] SOL_Sectores sOL_Sectores) { if (ModelState.IsValid) { db.Entry(sOL_Sectores).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(sOL_Sectores)); }
public ActionResult Create([Bind(Include = "SECTOR_ID,SECTOR_NOMBRE,AREA_ID,SECTOR_STATUS")] SOL_Sectores sOL_Sectores) { if (ModelState.IsValid) { db.SOL_Sectores.Add(sOL_Sectores); db.SaveChanges(); return(RedirectToAction("Index")); } return(View(sOL_Sectores)); }
// GET: SOL_Sectores/Delete/5 public ActionResult Delete(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } SOL_Sectores sOL_Sectores = db.SOL_Sectores.Find(id); if (sOL_Sectores == null) { return(HttpNotFound()); } return(View(sOL_Sectores)); }