예제 #1
0
 public async Task <Carrier> GetEntityById(long?carrierId)
 {
     try{
         return(await _dbContext.FindAsync <Carrier>(carrierId));
     }
     catch (Exception ex) { throw new Exception(GetMyMethodName(), ex); }
 }
예제 #2
0
 public async Task <Equipment> GetEntityById(long?equipmentId)
 {
     try{
         return(await _dbContext.FindAsync <Equipment>(equipmentId));
     }
     catch (Exception ex) { throw new Exception(GetMyMethodName(), ex); }
 }
예제 #3
0
 public async Task <AccountPayableDetail> GetEntityById(long?accountPyableDetailId)
 {
     try{
         return(await _dbContext.FindAsync <AccountPayableDetail>(accountPyableDetailId));
     }
     catch (Exception ex) { throw new Exception(GetMyMethodName(), ex); }
 }
 public async Task <ServiceInformationInvoice> GetEntityById(long?serviceInformationInvoiceId)
 {
     try{
         return(await _dbContext.FindAsync <ServiceInformationInvoice>(serviceInformationInvoiceId));
     }
     catch (Exception ex) { throw new Exception(GetMyMethodName(), ex); }
 }
 public async Task <ProjectManagementTaskToEmployee> GetEntityById(long?projectManagementTaskToEmployeeId)
 {
     try{
         return(await _dbContext.FindAsync <ProjectManagementTaskToEmployee>(projectManagementTaskToEmployeeId));
     }
     catch (Exception ex) { throw new Exception(GetMyMethodName(), ex); }
 }
예제 #6
0
 public async Task <LocationAddress> GetEntityById(long?locationAddressId)
 {
     try{
         return(await _dbContext.FindAsync <LocationAddress>(locationAddressId));
     }
     catch (Exception ex) { throw new Exception(GetMyMethodName(), ex); }
 }
예제 #7
0
 public async Task <Udc> GetEntityById(long?udcId)
 {
     try{
         return(await _dbContext.FindAsync <Udc>(udcId));
     }
     catch (Exception ex) { throw new Exception(GetMyMethodName(), ex); }
 }
예제 #8
0
 public async Task <PurchaseOrderDetail> GetEntityById(long?purchaseOrderDetailId)
 {
     try{
         return(await _dbContext.FindAsync <PurchaseOrderDetail>(purchaseOrderDetailId));
     }
     catch (Exception ex) { throw new Exception(GetMyMethodName(), ex); }
 }
예제 #9
0
 public async Task <JobPhase> GetEntityById(long?jobPhaseId)
 {
     try{
         return(await _dbContext.FindAsync <JobPhase>(jobPhaseId));
     }
     catch (Exception ex) { throw new Exception(GetMyMethodName(), ex); }
 }
예제 #10
0
 public async Task <Poquote> GetEntityById(long?poQuoteId)
 {
     try{
         return(await _dbContext.FindAsync <Poquote>(poQuoteId));
     }
     catch (Exception ex) { throw new Exception(GetMyMethodName(), ex); }
 }
예제 #11
0
 public async Task <PackingSlip> GetEntityById(long?packingSlipId)
 {
     try{
         return(await _dbContext.FindAsync <PackingSlip>(packingSlipId));
     }
     catch (Exception ex) { throw new Exception(GetMyMethodName(), ex); }
 }
 public async Task <TimeAndAttendanceSetup> GetEntityById(long?timeAndAttendanceSetupId)
 {
     try{
         return(await _dbContext.FindAsync <TimeAndAttendanceSetup>(timeAndAttendanceSetupId));
     }
     catch (Exception ex) { throw new Exception(GetMyMethodName(), ex); }
 }
예제 #13
0
 public async Task <ContractInvoice> GetEntityById(long?contractInvoiceId)
 {
     try{
         return(await _dbContext.FindAsync <ContractInvoice>(contractInvoiceId));
     }
     catch (Exception ex) { throw new Exception(GetMyMethodName(), ex); }
 }
예제 #14
0
 public async Task <InvoiceDetail> GetEntityById(long?invoiceDetailId)
 {
     try{
         return(await _dbContext.FindAsync <InvoiceDetail>(invoiceDetailId));
     }
     catch (Exception ex) { throw new Exception(GetMyMethodName(), ex); }
 }
 public async Task <AccountReceivableInterest> GetEntityById(long?accountReceivableInterestId)
 {
     try{
         return(await _dbContext.FindAsync <AccountReceivableInterest>(accountReceivableInterestId));
     }
     catch (Exception ex) { throw new Exception(GetMyMethodName(), ex); }
 }
예제 #16
0
 public async Task <CustomerClaim> GetEntityById(long?customerClaimId)
 {
     try{
         return(await _dbContext.FindAsync <CustomerClaim>(customerClaimId));
     }
     catch (Exception ex) { throw new Exception(GetMyMethodName(), ex); }
 }
예제 #17
0
 public async Task <Supervisor> GetEntityById(long?supervisorId)
 {
     try{
         return(await _dbContext.FindAsync <Supervisor>(supervisorId));
     }
     catch (Exception ex) { throw new Exception(GetMyMethodName(), ex); }
 }
예제 #18
0
 public async Task <ChartOfAccount> GetEntityById(long?accountId)
 {
     try
     {
         return(await _dbContext.FindAsync <ChartOfAccount>(accountId));
     }
     catch (Exception ex) { throw new Exception(GetMyMethodName(), ex); }
 }
예제 #19
0
 public async Task <GeneralLedger> GetEntityById(long?generalLedgerId)
 {
     try
     {
         return(await _dbContext.FindAsync <GeneralLedger>(generalLedgerId));
     }
     catch (Exception ex) { throw new Exception(GetMyMethodName(), ex); }
 }
예제 #20
0
 public async Task <BudgetRange> GetEntityById(long?budgetRangeId)
 {
     try
     {
         return(await _dbContext.FindAsync <BudgetRange>(budgetRangeId));
     }
     catch (Exception ex) { throw new Exception(GetMyMethodName(), ex); }
 }
예제 #21
0
        public async Task <IList <EmailEntity> > GetEmailByCustomerId(long?customerId)
        {
            try
            {
                Customer customer = await _dbContext.FindAsync <Customer>(customerId);

                long addressId          = customer.AddressId;
                List <EmailEntity> list = await

                                              (from e in _dbContext.EmailEntity
                                              where e.AddressId == addressId
                                              select e).ToListAsync <EmailEntity>();

                return(list);
            }
            catch (Exception ex) { throw new Exception(GetMyMethodName(), ex); }
        }
 public async Task <PayRollDeductionLiabilities> GetEntityById(long payRollDeductionLiabilitiesId)
 {
     return(await _dbContext.FindAsync <PayRollDeductionLiabilities>(payRollDeductionLiabilitiesId));
 }
예제 #23
0
 public async Task <PayRollTotals> GetEntityById(long payRollTotalsId)
 {
     return(await _dbContext.FindAsync <PayRollTotals>(payRollTotalsId));
 }
예제 #24
0
 public async Task <PayRollGroup> GetEntityById(long payRollGroupId)
 {
     return(await _dbContext.FindAsync <PayRollGroup>(payRollGroupId));
 }
예제 #25
0
 public async Task <PayRollPaySequence> GetEntityById(long payRollPaySequenceId)
 {
     return(await _dbContext.FindAsync <PayRollPaySequence>(payRollPaySequenceId));
 }
예제 #26
0
 public async Task <AddressBook> GetEntityById(long?employeeId)
 {
     return(await _dbContext.FindAsync <AddressBook>(employeeId));
 }
예제 #27
0
 public async Task <ShipmentDetail> GetEntityById(long?shipmentDetailId)
 {
     return(await _dbContext.FindAsync <ShipmentDetail>(shipmentDetailId));
 }
 public async Task <PayRollTransactionsByEmployee> GetEntityById(long payRollTransactionsByEmployeeId)
 {
     return(await _dbContext.FindAsync <PayRollTransactionsByEmployee>(payRollTransactionsByEmployeeId));
 }
예제 #29
0
    public async Task <SalesOrderDetail> GetEntityById(long?salesOrderDetailId)

    {
        return(await _dbContext.FindAsync <SalesOrderDetail>(salesOrderDetailId));
    }
예제 #30
0
 public async Task <PayRollLedger> GetEntityById(long payRollLedgerId)
 {
     return(await _dbContext.FindAsync <PayRollLedger>(payRollLedgerId));
 }