public IActionResult Create(Payment payment)
 {
     if (ModelState.IsValid)
     {
         _context.Payment.Add(payment);
         _context.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(payment));
 }
Exemplo n.º 2
0
 public IActionResult Create(Property property)
 {
     if (ModelState.IsValid)
     {
         _context.Property.Add(property);
         _context.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(property));
 }
Exemplo n.º 3
0
 public IActionResult Create(HouseDocument houseDocument)
 {
     if (ModelState.IsValid)
     {
         _context.HouseDocument.Add(houseDocument);
         _context.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(houseDocument));
 }