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