public async Task CreateComunication(Balance balance, KindOfCurrency kindOfCurrency) { var balanKindOfCurr = new BalanKindOfCurr() { BalanceId = balance.Id, KindOfCurrencyId = kindOfCurrency.Id }; _context.BalanKindOfCurrs.Add(balanKindOfCurr); await _context.SaveChangesAsync(); }
public async Task Update(KindOfCurrency entity) { _context.KindOfCurrencies.Update(entity); await _context.SaveChangesAsync(); }