public async Task<Address> CreateAddressAsync(Address address) { Addresses.Add(address); await SaveChangesAsync(); return address; }
public async Task<int> CreateAddress(Address address) { var addr = await DbContext.CreateAddressAsync(address); return addr.Id; }