public void Update(RatesDto dto) { var domain = repository.GetByPKs(dto.From, dto.To); DomainServicesMapper.MapToRates(dto, domain); repository.Update(domain); Logger.AddLOGMsg($"Updated Rate with From -> {dto.From} To -> {dto.To} Rate -> {dto.Rate}"); }
public void Add(RatesDto dto) { var domain = new Rates(); DomainServicesMapper.MapToRates(dto, domain); repository.Add(domain); Logger.AddLOGMsg($"Add Rates with From -> {dto.From} To -> {dto.To} Rate -> {dto.Rate}"); }