public IActionResult Edit(Tenant tenant) { if (ModelState.IsValid) { _context.Update(tenant); _context.SaveChanges(); return(RedirectToAction("Index")); } return(View(tenant)); }
public IActionResult Edit(Property property) { if (ModelState.IsValid) { _context.Update(property); _context.SaveChanges(); return(RedirectToAction("Index")); } return(View(property)); }
public IActionResult Edit(HouseDocument houseDocument) { if (ModelState.IsValid) { _context.Update(houseDocument); _context.SaveChanges(); return(RedirectToAction("Index")); } return(View(houseDocument)); }