public ActionResult Create([Bind(Include = "realStateRegistryInterestPropertyTaxes_id,realStateRegistryInterestPropertyTaxes_number,realStateRegistryInterestPropertyTaxes_body")] RealStateRegistryInterestPropertyTax realStateRegistryInterestPropertyTax) { if (ModelState.IsValid) { db.RealStateRegistryInterestPropertyTaxes.Add(realStateRegistryInterestPropertyTax); db.SaveChanges(); return(RedirectToAction("Index")); } return(View(realStateRegistryInterestPropertyTax)); }
// GET: RealStateRegistryInterestPropertyTaxes/Delete/5 public ActionResult Delete(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } RealStateRegistryInterestPropertyTax realStateRegistryInterestPropertyTax = db.RealStateRegistryInterestPropertyTaxes.Find(id); if (realStateRegistryInterestPropertyTax == null) { return(HttpNotFound()); } return(View(realStateRegistryInterestPropertyTax)); }