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