public ActionResult Create([Bind(Include = "ResidenceTypeID,ResidenceKind")] ResidenceType residenceType) { if (ModelState.IsValid) { residenceTypeRepository.InsertResidenceType(residenceType); residenceTypeRepository.Save(); return(RedirectToAction("Index")); } return(View(residenceType)); }