public FinancialConcertMarketingAgreeApiController(IFinancialConcertMarketingAgreeService service) { this.service = service; mapperConfig = new MapperConfiguration(cfg => { cfg.CreateMap <FinancialConcertMarketingAgreeAdminViewModel, FinancialConcertMarketingAgreeEntry>(); }); }
public AdminFinancialConcertMarketingAgreeController(IFinancialConcertMarketingAgreeService service, ICommonProvider common) { this.service = service; this.common = common; mapperConfig = new MapperConfiguration(cfg => { cfg.CreateMap <FinancialConcertMarketingAgreeAdminViewModel, FinancialConcertMarketingAgreeEntry>(); }); }
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)); }); }