Exemplo n.º 1
0
 // GET: Houses/Create
 //Gets the create house form.
 public IActionResult Create()
 {
     ViewData["HouseOwnerId"] = new SelectList(_context.Set <HouseOwner>(), "Id", "HouseOwnerRegistrationId");
     return(View());
 }
 // GET: Contracts/Create
 //Gets the create form for contracts.
 public IActionResult Create()
 {
     ViewData["HouseId"]  = new SelectList(_context.Set <House>(), "Id", "HouseAddress");
     ViewData["TenantId"] = new SelectList(_context.Set <Tenant>(), "Id", "TenantRegistrationId");
     return(View());
 }