コード例 #1
0
        public ActionResult DeleteConfirmed(int id)
        {
            RealStateRegistryInterestReport realStateRegistryInterestReport = db.RealStateRegistryInterestReports.Find(id);

            db.RealStateRegistryInterestReports.Remove(realStateRegistryInterestReport);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
コード例 #2
0
        // GET: RealStateRegistryInterestReports/Details/5
        public ActionResult Details(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            RealStateRegistryInterestReport realStateRegistryInterestReport = db.RealStateRegistryInterestReports.Find(id);

            if (realStateRegistryInterestReport == null)
            {
                return(HttpNotFound());
            }
            return(View(realStateRegistryInterestReport));
        }
コード例 #3
0
 public ActionResult Edit([Bind(Include = "realStateRegistryInterest_reports_id,realStateRegistryInterest_reports_subject,realStateRegistryInterest_reports_vendor_id,realStateRegistryInterest_reports_buyer_id,realStateRegistryInterest_reports_Places_id,realStateRegistryInterest_reports_popularContract_id,realStateRegistryInterest_reports_propertyTaxes_id,realStateRegistryInterest_reports_price,realStateRegistryInterest_reports_request,realStateRegistryInterest_reports_number,realStateRegistryInterest_reports_Date,realStateRegistryInterestBranch_id")] RealStateRegistryInterestReport realStateRegistryInterestReport)
 {
     if (ModelState.IsValid)
     {
         db.Entry(realStateRegistryInterestReport).State = System.Data.Entity.EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     ViewBag.realStateRegistryInterest_reports_request            = new SelectList(db.AreasAuthorityRequests, "AreasAuthorityRequest_id", "AreasAuthorityRequest_number", realStateRegistryInterestReport.realStateRegistryInterest_reports_request);
     ViewBag.realStateRegistryInterest_reports_vendor_id          = new SelectList(db.Citizens, "citizen_id", "citizen_national_id", realStateRegistryInterestReport.realStateRegistryInterest_reports_vendor_id);
     ViewBag.realStateRegistryInterest_reports_buyer_id           = new SelectList(db.Citizens, "citizen_id", "citizen_national_id", realStateRegistryInterestReport.realStateRegistryInterest_reports_buyer_id);
     ViewBag.realStateRegistryInterest_reports_Places_id          = new SelectList(db.Districts, "district_id", "district_name", realStateRegistryInterestReport.realStateRegistryInterest_reports_Places_id);
     ViewBag.realStateRegistryInterestBranch_id                   = new SelectList(db.RealStateRegistryInterestBranches, "realStateRegistryInterest_branch_id", "realStateRegistryInterest_branch_name", realStateRegistryInterestReport.realStateRegistryInterestBranch_id);
     ViewBag.realStateRegistryInterest_reports_popularContract_id = new SelectList(db.RealStateRegistryInterestPopularContracts, "realStateRegistryInterest_popularContract_id", "realStateRegistryInterest_popularContract_name", realStateRegistryInterestReport.realStateRegistryInterest_reports_popularContract_id);
     ViewBag.realStateRegistryInterest_reports_propertyTaxes_id   = new SelectList(db.RealStateRegistryInterestPropertyTaxes, "realStateRegistryInterestPropertyTaxes_id", "realStateRegistryInterestPropertyTaxes_number", realStateRegistryInterestReport.realStateRegistryInterest_reports_propertyTaxes_id);
     ViewBag.realStateRegistryInterest_reports_subject            = new SelectList(db.RealStateRegistryInterestReportsSubjects, "realStateRegistryInterestReports_subject_id", "realStateRegistryInterestReports_subject_name", realStateRegistryInterestReport.realStateRegistryInterest_reports_subject);
     return(View(realStateRegistryInterestReport));
 }
コード例 #4
0
        // GET: RealStateRegistryInterestReports/Edit/5
        public ActionResult Edit(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            RealStateRegistryInterestReport realStateRegistryInterestReport = db.RealStateRegistryInterestReports.Find(id);

            if (realStateRegistryInterestReport == null)
            {
                return(HttpNotFound());
            }
            ViewBag.realStateRegistryInterest_reports_request            = new SelectList(db.AreasAuthorityRequests, "AreasAuthorityRequest_id", "AreasAuthorityRequest_number", realStateRegistryInterestReport.realStateRegistryInterest_reports_request);
            ViewBag.realStateRegistryInterest_reports_vendor_id          = new SelectList(db.Citizens, "citizen_id", "citizen_national_id", realStateRegistryInterestReport.realStateRegistryInterest_reports_vendor_id);
            ViewBag.realStateRegistryInterest_reports_buyer_id           = new SelectList(db.Citizens, "citizen_id", "citizen_national_id", realStateRegistryInterestReport.realStateRegistryInterest_reports_buyer_id);
            ViewBag.realStateRegistryInterest_reports_Places_id          = new SelectList(db.Districts, "district_id", "district_name", realStateRegistryInterestReport.realStateRegistryInterest_reports_Places_id);
            ViewBag.realStateRegistryInterestBranch_id                   = new SelectList(db.RealStateRegistryInterestBranches, "realStateRegistryInterest_branch_id", "realStateRegistryInterest_branch_name", realStateRegistryInterestReport.realStateRegistryInterestBranch_id);
            ViewBag.realStateRegistryInterest_reports_popularContract_id = new SelectList(db.RealStateRegistryInterestPopularContracts, "realStateRegistryInterest_popularContract_id", "realStateRegistryInterest_popularContract_name", realStateRegistryInterestReport.realStateRegistryInterest_reports_popularContract_id);
            ViewBag.realStateRegistryInterest_reports_propertyTaxes_id   = new SelectList(db.RealStateRegistryInterestPropertyTaxes, "realStateRegistryInterestPropertyTaxes_id", "realStateRegistryInterestPropertyTaxes_number", realStateRegistryInterestReport.realStateRegistryInterest_reports_propertyTaxes_id);
            ViewBag.realStateRegistryInterest_reports_subject            = new SelectList(db.RealStateRegistryInterestReportsSubjects, "realStateRegistryInterestReports_subject_id", "realStateRegistryInterestReports_subject_name", realStateRegistryInterestReport.realStateRegistryInterest_reports_subject);
            return(View(realStateRegistryInterestReport));
        }