コード例 #1
0
 public IActionResult Edit(Tenant tenant)
 {
     if (ModelState.IsValid)
     {
         _context.Update(tenant);
         _context.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(tenant));
 }
コード例 #2
0
 public IActionResult Edit(Property property)
 {
     if (ModelState.IsValid)
     {
         _context.Update(property);
         _context.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(property));
 }
コード例 #3
0
 public IActionResult Edit(HouseDocument houseDocument)
 {
     if (ModelState.IsValid)
     {
         _context.Update(houseDocument);
         _context.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(houseDocument));
 }