Exemplo n.º 1
0
 public IActionResult OnPostAddOwner()
 {
     if (ModelState.IsValid)
     {
         Db.Data.Owner.Add(NewOwner.Owner);
         Db.SaveChanges();
     }
     return(Page());
 }
Exemplo n.º 2
0
 public IActionResult OnPostAddLocation()
 {
     if (ModelState.IsValid)
     {
         Db.Data.Locations.Add(NewLocation.Location);
         Db.SaveChanges();
     }
     return(Page());
 }