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