예제 #1
0
        protected MCreditServiceBase(IMCeditRepository mCeditBusiness, ILogRepository logRepository)
        {
            _httpClient     = new HttpClient();
            _requestMessage = new HttpRequestMessage();
            _requestMessage.Headers.Add("xdncode", _xdnCode);
            _userToken  = string.Empty;
            _bizMcredit = mCeditBusiness;
            _rpLog      = logRepository;
            //var config = new MapperConfiguration(x =>
            //{
            //    x.CreateMap<OptionSimple, ProfileAddObj>()
            //    .ForMember(a => a.name, b => b.MapFrom(c => c.TenKhachHang))
            //    .ForMember(a => a.cityId, b => b.MapFrom(c => c.MaKhuVuc))
            //    .ForMember(a => a.bod, b => b.MapFrom(c => c.BirthDay.ToShortDateString()))
            //    .ForMember(a => a.phone, b => b.MapFrom(c => c.SDT))
            //    .ForMember(a => a.productCode, b => b.MapFrom(c => c.ProductCode))
            //    .ForMember(a => a.idNumber, b => b.MapFrom(c => c.CMND))
            //    .ForMember(a => a.idNumberDate, b => b.MapFrom(c => c.CmndDay.ToShortDateString()))
            //    //.ForMember(a => a.loanPeriodCode, b => b.MapFrom(c => c.CMND))
            //    .ForMember(a => a.loanMoney, b => b.MapFrom(c => c.SoTienVay.ToString()))
            //    //.ForMember(a => a.saleID, b => b.MapFrom(c => c.CMND))
            //    ;

            //});

            //_mapper = config.CreateMapper();
        }
예제 #2
0
 public MediaBusiness(ITailieuRepository tailieuRepository,
                      IMCeditRepository mCeditRepository,
                      IHosoCourrierRepository hosoCourrierRepository)
 {
     _rpTailieu        = tailieuRepository;
     _rpCourierProfile = hosoCourrierRepository;
     _rpMCredit        = mCeditRepository;
 }
예제 #3
0
 public MCreditController(IMCeditRepository rpMCredit,
                          INoteRepository noteRepository,
                          IMCreditRepositoryTest mCreditRepositoryTest,
                          IMediaBusiness mediaBusiness,
                          ITailieuRepository tailieuRepository,
                          ILogRepository logRepository,
                          IEmployeeRepository employeeRepository,
                          IMCreditService loanContractService) : base()
 {
     _rpMCredit  = rpMCredit;
     _svMCredit  = loanContractService;
     _rpNote     = noteRepository;
     _bizMedia   = mediaBusiness;
     _rpMcTest   = mCreditRepositoryTest;
     _rpTailieu  = tailieuRepository;
     _rpEmployee = employeeRepository;
     _rpLog      = logRepository;
 }
예제 #4
0
 public MCreditLoanService(IMCeditRepository mCeditBusiness, ILogRepository logRepository) : base(mCeditBusiness, logRepository)
 {
 }