public ActionResult DeleteConfirmed(int id) { RealStateRegistryInterestReportsSubject realStateRegistryInterestReportsSubject = db.RealStateRegistryInterestReportsSubjects.Find(id); db.RealStateRegistryInterestReportsSubjects.Remove(realStateRegistryInterestReportsSubject); db.SaveChanges(); return(RedirectToAction("Index")); }
public ActionResult Edit(RealStateRegistryInterestReportsSubject realStateRegistryInterestReportsSubject) { if (ModelState.IsValid) { db.Entry(realStateRegistryInterestReportsSubject).State = System.Data.Entity.EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(realStateRegistryInterestReportsSubject)); }
public ActionResult Create(RealStateRegistryInterestReportsSubject realStateRegistryInterestReportsSubject) { if (ModelState.IsValid) { db.RealStateRegistryInterestReportsSubjects.Add(realStateRegistryInterestReportsSubject); db.SaveChanges(); return(RedirectToAction("Index")); } return(View(realStateRegistryInterestReportsSubject)); }
// GET: RealStateRegistryInterestReportsSubjects/Delete/5 public ActionResult Delete(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } RealStateRegistryInterestReportsSubject realStateRegistryInterestReportsSubject = db.RealStateRegistryInterestReportsSubjects.Find(id); if (realStateRegistryInterestReportsSubject == null) { return(HttpNotFound()); } return(View(realStateRegistryInterestReportsSubject)); }