Exemplo n.º 1
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.º 2
0
 public RebrandingApiController(IRebrandingEventService service)
 {
     this.service = service;
 }
Exemplo n.º 3
0
 public AdminRebrandingController(IRebrandingEventService service, ICommonProvider common)
 {
     this.service = service;
     this.common  = common;
 }