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 RebrandingApiController(IRebrandingEventService service) { this.service = service; }
public AdminRebrandingController(IRebrandingEventService service, ICommonProvider common) { this.service = service; this.common = common; }