private async Task <Guid> InsertHistory(string movement, decimal amountMoved, Guid currentAccountId) { var entityHistoric = new HistoricCurrentAccountEntity { Movement = movement, AmountMoved = amountMoved, CurrentAccountId = currentAccountId }; return(await _repositoryHistoricCurrentAccount.InsertAsync(entityHistoric)); }
public async Task <Guid> Insert(HistoricCurrentAccountEntity entity) { return(await _repository.InsertAsync(entity)); }