Exemple #1
0
        public ActionResult DeleteConfirmed(int id)
        {
            RealStateRegistryInterestReportsSubject realStateRegistryInterestReportsSubject = db.RealStateRegistryInterestReportsSubjects.Find(id);

            db.RealStateRegistryInterestReportsSubjects.Remove(realStateRegistryInterestReportsSubject);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
Exemple #2
0
 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));
 }
Exemple #3
0
        public ActionResult Create(RealStateRegistryInterestReportsSubject realStateRegistryInterestReportsSubject)
        {
            if (ModelState.IsValid)
            {
                db.RealStateRegistryInterestReportsSubjects.Add(realStateRegistryInterestReportsSubject);
                db.SaveChanges();
                return(RedirectToAction("Index"));
            }

            return(View(realStateRegistryInterestReportsSubject));
        }
Exemple #4
0
        // 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));
        }