public async void EditAddress(Address address) { Context.Addresses.Attach(address); Context.Entry(address).State = EntityState.Modified; await Context.SaveChangesAsync(); }
public async void CreateAddress(Address address) { Context.Addresses.Add(address); await Context.SaveChangesAsync(); }