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

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

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

            return(_couponRepository.AddNew(entity));
        }