コード例 #1
0
        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}");
        }
コード例 #2
0
        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}");
        }