Example #1
0
        public FinancialConcertMarketingAgreeApiController(IFinancialConcertMarketingAgreeService service)
        {
            this.service = service;

            mapperConfig = new MapperConfiguration(cfg => {
                cfg.CreateMap <FinancialConcertMarketingAgreeAdminViewModel, FinancialConcertMarketingAgreeEntry>();
            });
        }
Example #2
0
        public AdminFinancialConcertMarketingAgreeController(IFinancialConcertMarketingAgreeService service, ICommonProvider common)
        {
            this.service = service;
            this.common  = common;

            mapperConfig = new MapperConfiguration(cfg => {
                cfg.CreateMap <FinancialConcertMarketingAgreeAdminViewModel, FinancialConcertMarketingAgreeEntry>();
            });
        }
Example #3
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));
            });
        }