Exemplo n.º 1
0
        public static CustomerBankRepository Get客戶銀行資訊Repository(IUnitOfWork unitOfWork)
        {
            var repository = new CustomerBankRepository();

            repository.UnitOfWork = unitOfWork;
            return(repository);
        }
 public 客戶資料Controller()
 {
     customerRepo = RepositoryHelper.Get客戶資料Repository();
     dbViewRepo   = RepositoryHelper.GetView_客戶對應聯絡人及銀行帳戶數量Repository(customerRepo.UnitOfWork);
     contantRepo  = RepositoryHelper.Get客戶聯絡人Repository(customerRepo.UnitOfWork);
     bankRepo     = RepositoryHelper.Get客戶銀行資訊Repository(customerRepo.UnitOfWork);
 }
Exemplo n.º 3
0
        public IList<CustomerBankVM> getCustBankInfoByID(string _ID)
        {
            objCustBank = new CustomerBankRepository();

            Mapper.CreateMap<CustomerBank, CustomerBankVM>();

            IList<CustomerBank> objEntity = objCustBank.GetAll(x => x.CustomerID == _ID).ToList();

            IList<CustomerBankVM> objResult = new List<CustomerBankVM>();

            objResult = Mapper.Map(objEntity, objResult);

            return objResult;
        }
Exemplo n.º 4
0
 public 客戶銀行資訊Controller()
 {
     custBankRepo = RepositoryHelper.Get客戶銀行資訊Repository();
     customerRepo = RepositoryHelper.Get客戶資料Repository(custBankRepo.UnitOfWork);
 }