示例#1
0
 public Coupon Map(CouponDto couponDto)
 => _mapper.Map <Coupon>(couponDto);
示例#2
0
        public bool EditCoupon(CouponDto couponDto)
        {
            var entity = _dtoMapper.Map(couponDto);

            return(_couponRepository.Edit(entity));
        }
示例#3
0
        public bool DeleteCoupon(CouponDto couponDto)
        {
            var entity = _dtoMapper.Map(couponDto);

            return(_couponRepository.Delete(entity));
        }
示例#4
0
        public bool AddNewCoupon(CouponDto couponDto)
        {
            var entity = _dtoMapper.Map(couponDto);

            return(_couponRepository.AddNew(entity));
        }