Beispiel #1
0
 public StatementOfAccountBL()
 {
     _unitOfWork               = GetUnitOfWork();
     companyService            = new CompanyBL(_unitOfWork);
     shipmentService           = new ShipmentBL(_unitOfWork);
     paymentTypeService        = new PaymentTypeBL(_unitOfWork);
     shipmentAdjustmentService = new ShipmentAdjustmentBL(_unitOfWork);
     soaPaymentService         = new StatementOfAccountPaymentBL(_unitOfWork);
     paymentService            = new PaymentBL(_unitOfWork);
 }
        public List <Client> GetByCompanyAccountNo(string companyAccountNo)
        {
            CompanyBL companyService = new CompanyBL(_unitOfWork);

            return(GetAll()
                   .Join(companyService.FilterBy(x => x.AccountNo.Equals(companyAccountNo)),
                         cln => cln.CompanyId,
                         com => com.CompanyId,
                         (cln, com) => new { clients = cln })
                   .Select(y => y.clients)
                   .ToList());
        }
        public List <Client> GetByCompanyId(Guid companyId)
        {
            CompanyBL companyService = new CompanyBL(_unitOfWork);

            return(GetAll()
                   .Join(companyService.FilterBy(x => x.CompanyId == companyId),
                         cln => cln.CompanyId,
                         com => com.CompanyId,
                         (cln, com) => new { clients = cln })
                   .Select(y => y.clients)
                   .ToList());
        }
 public ClientBL()
 {
     _unitOfWork    = GetUnitOfWork();
     cityService    = new CityBL(_unitOfWork);
     companyService = new CompanyBL(_unitOfWork);
 }
 public ApprovingAuthorityBL()
 {
     _unitOfWork    = GetUnitOfWork();
     companyService = new CompanyBL(_unitOfWork);
 }