Пример #1
0
 public ActionResult Edit([Bind(Include = "ResidenceTypeID,ResidenceKind")] ResidenceType residenceType)
 {
     if (ModelState.IsValid)
     {
         residenceTypeRepository.UpdateResidenceType(residenceType);
         residenceTypeRepository.Save();
         return(RedirectToAction("Index"));
     }
     return(View(residenceType));
 }