Exemplo n.º 1
0
        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));
            });
        }
Exemplo n.º 2
0
        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>();
            });
        }
Exemplo n.º 3
0
        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>();
            });
        }
Exemplo n.º 4
0
        public KidsNoteController(IKidsNoteService service, IKMCService kmcService, ICommonProvider common)
        {
            this.service    = service;
            this.kmcService = kmcService;
            this.common     = common;

            mapperConfig = new MapperConfiguration(cfg => {
                cfg.CreateMap <KidsNoteEntry, KidsNoteViewModel>();
                cfg.CreateMap <KidsNoteModel, KidsNoteEntry>()
                .ForMember(dest => dest.Email, opt => opt.MapFrom(e => e.EmailCheck ? e.Email1 + "@" + e.Email2 : null))
                .ForMember(dest => dest.ChildAge, opt => opt.MapFrom(e => e.ChildAge.Value));
            });
        }
Exemplo n.º 5
0
        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));
            });
        }
Exemplo n.º 6
0
        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>();
            });
        }
Exemplo n.º 7
0
        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));
            });
        }
Exemplo n.º 8
0
 public KMCTestController(ITimeProvider time, IKMCService kmcService)
 {
     this.time       = time;
     this.kmcService = kmcService;
 }