Ejemplo n.º 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}");
        }
Ejemplo n.º 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}");
        }
Ejemplo n.º 3
0
        public void Delete(RatesDto dto)
        {
            var domain = repository.GetByPKs(dto.From, dto.To);

            repository.Delete(domain);
        }