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