public async Task <UserBitcoinAddress> Update(UserBitcoinAddress bitcoinAddress) { _context.Entry(bitcoinAddress).State = EntityState.Modified; await _context.SaveChangesAsync(); return(bitcoinAddress); }
public async Task <UserBitcoinAddress> Add(UserBitcoinAddress bitcoinAddress) { _context.UserBitcoinAddresses.Add(bitcoinAddress); await _context.SaveChangesAsync(); return(bitcoinAddress); }