public Coupon Map(CouponDto couponDto) => _mapper.Map <Coupon>(couponDto);
public bool EditCoupon(CouponDto couponDto) { var entity = _dtoMapper.Map(couponDto); return(_couponRepository.Edit(entity)); }
public bool DeleteCoupon(CouponDto couponDto) { var entity = _dtoMapper.Map(couponDto); return(_couponRepository.Delete(entity)); }
public bool AddNewCoupon(CouponDto couponDto) { var entity = _dtoMapper.Map(couponDto); return(_couponRepository.AddNew(entity)); }