Exemplo n.º 1
0
 public Coupon Map(CouponDto couponDto)
 => _mapper.Map <Coupon>(couponDto);
Exemplo n.º 2
0
        public bool EditCoupon(CouponDto couponDto)
        {
            var entity = _dtoMapper.Map(couponDto);

            return(_couponRepository.Edit(entity));
        }
Exemplo n.º 3
0
        public bool DeleteCoupon(CouponDto couponDto)
        {
            var entity = _dtoMapper.Map(couponDto);

            return(_couponRepository.Delete(entity));
        }
Exemplo n.º 4
0
        public bool AddNewCoupon(CouponDto couponDto)
        {
            var entity = _dtoMapper.Map(couponDto);

            return(_couponRepository.AddNew(entity));
        }