public Orange4050Controller(IOverFortyFiveService service, IKMCService kmcService, ICommonProvider common, IUplusSmsApiService smsOpenApiService) { this.service = service; this.kmcService = kmcService; this.common = common; this.smsOpenApiService = smsOpenApiService; mapperConfig = new MapperConfiguration(cfg => { cfg.CreateMap <OverFortyFiveDbEntry, OverFortyFiveDbViewModel>(); cfg.CreateMap <OverFortyFiveDbModel, OverFortyFiveDbEntry>(); }); }
public FinancialConcertMarketingAgreeController(ICommonProvider common, IKMCService kmcService, IFinancialConcertMarketingAgreeService service, IUplusSmsApiService smsService) { this.common = common; this.kmcService = kmcService; this.service = service; this.smsService = smsService; mapperConfig = new MapperConfiguration(cfg => { cfg.CreateMap <FinancialConcertMarketingAgreeEntry, FinancialConcertMarketingAgreeCertModel>(); cfg.CreateMap <FinancialConcertMarketingAgreeCreateModel, FinancialConcertMarketingAgreeEntry>().ForMember(dest => dest.Email, opt => opt.MapFrom(e => e.EmailCheck ? string.Format("{0}@{1}", e.Email1, e.Email2) : null)); }); }
public MarketingAgreeController(IMarketingAgreeService service, IKMCService kmcService, ICommonProvider common, IUplusSmsApiService smsOpenApiService) { this.service = service; this.kmcService = kmcService; this.common = common; this.smsOpenApiService = smsOpenApiService; mapperConfig = new MapperConfiguration(cfg => { cfg.CreateMap <MarketingAgreeEntry, MarketingAgreeViewModel>(); cfg.CreateMap <MarketingAgreeModel, MarketingAgreeEntry>(); }); }
public TumblerEventController(ICommonProvider common, IKMCService kmcService, IUplusSmsApiService smsService, ITumblerEventService tumblerService) { this.common = common; this.kmcService = kmcService; this.smsService = smsService; this.tumblerService = tumblerService; mapperConfig = new MapperConfiguration(cfg => { cfg.CreateMap <TumblerEventEntry, TumblerCreateModel>(); cfg.CreateMap <TumblerCreateModel, TumblerEventEntry>().ForMember(dest => dest.Email, opt => opt.MapFrom(e => e.EmailCheck ? string.Format("{0}@{1}", e.Email1, e.Email2) : null)); }); }
public ReBrandingController(IRebrandingEventService service, IKMCService kmcService, ICommonProvider common, IUplusSmsApiService smsService) { this.service = service; this.kmcService = kmcService; this.common = common; this.smsService = smsService; mapperConfig = new MapperConfiguration(cfg => { cfg.CreateMap <RebrandingMarketingAgreeEntry, RebrandingViewModel>(); cfg.CreateMap <RebrandingConsultingAgreeEntry, RebrandingViewModel>(); cfg.CreateMap <RebrandingMarketingModel, RebrandingMarketingAgreeEntry>().ForMember(dest => dest.Email, opt => opt.MapFrom(e => e.EmailCheck ? e.Email1 + "@" + e.Email2 : null)); cfg.CreateMap <RebrandingConsultingModel, RebrandingConsultingAgreeEntry>(); }); }
public FcEventController(IFinancialConsultantSharingService financialConsultantSharingService, IUplusSmsApiService smsService, ICommonProvider common, IKMCService kmcService) { this.financialConsultantSharingService = financialConsultantSharingService; this.smsService = smsService; this.common = common; this.kmcService = kmcService; mapperConfig = new MapperConfiguration(cfg => { cfg.CreateMap <FinancialConsultantOriginalCustomerEntry, FinancialConsultantSharingOriginCreateModel>(); cfg.CreateMap <FinancialConsultantSharingOriginCreateModel, FinancialConsultantOriginalCustomerEntry>() .ForMember(dest => dest.Email, opt => opt.MapFrom(e => e.EmailCheck ? e.Email1 + "@" + e.Email2 : null)); cfg.CreateMap <FinancialConsultantNewCustomerEntry, FinancialConsultantSharingNewCreateModel>(); cfg.CreateMap <FinancialConsultantSharingNewCreateModel, FinancialConsultantNewCustomerEntry>() .ForMember(dest => dest.Email, opt => opt.MapFrom(e => e.EmailCheck ? e.Email1 + "@" + e.Email2 : null)); }); }