public ProductSampleApproval GetProductSampleApproval(int pt) { return(_unitOfWork.Repository <ProductSampleApproval>().Query().Include(m => m.ProductSampleShipment) .Include(m => m.Product) .Include(m => m.ProductSampleShipment.ProductSamplePhotoApproval) .Include(m => m.ProductSampleShipment.ProductSamplePhotoApproval.ProductSample.ProductSampleAttributes) .Include(m => m.ProductSampleShipment.ProductSamplePhotoApproval.ProductSample) .Include(m => m.ProductSampleShipment.ProductSamplePhotoApproval.ProductSample.ProductType) .Include(m => m.ProductSampleShipment.ProductSamplePhotoApproval.ProductSample.Supplier) .Get().Where(m => m.ProductSampleApprovalId == pt).FirstOrDefault()); }
public ProductSampleShipment GetProductSampleShipment(int pt) { return(_unitOfWork.Repository <ProductSampleShipment>().Query() .Include(m => m.ProductSamplePhotoApproval) .Include(m => m.ProductSamplePhotoApproval.ProductSample) .Include(m => m.ProductSamplePhotoApproval.ProductSample.ProductSamplePhoto) .Include(m => m.ProductSamplePhotoApproval.ProductSample.Supplier) .Get().Where(m => m.ProductSampleShipmentId == pt).FirstOrDefault()); }
public ProductSample GetProductSample(int pId) { return(_unitOfWork.Repository <ProductSample>().Query() .Include(m => m.Supplier) .Include(m => m.Employee) .Include(m => m.ProductSampleAttributes) .Include(m => m.ProductType) .Include(m => m.ProductSamplePhoto) .Include(m => m.ProductSamplePhotoApprovals) .Get().Where(i => i.ProductSampleId == pId).FirstOrDefault()); //return _unitOfWork.Repository<SalesOrder>().Find(soId); }
public ProductSamplePhotoApproval GetProductSamplePhotoApproval(int pt) { //return CurrencyRepository.Include(r => r.SalesOrder).Get().Where(i => i.SalesOrderDetailId == pt).FirstOrDefault(); return(_unitOfWork.Repository <ProductSamplePhotoApproval>().Query() .Include(m => m.ProductSample) .Get().Where(m => m.ProductSamplePhotoApprovalId == pt).FirstOrDefault()); }
public PurchaseGoodsReceiptSetting Find(int id) { return(_unitOfWork.Repository <PurchaseGoodsReceiptSetting>().Find(id)); }
public ProductSizeType Find(int id) { return(_unitOfWork.Repository <ProductSizeType>().Find(id)); }
public Designation Find(int id) { return(_unitOfWork.Repository <Designation>().Find(id)); }
public Product Create(Product p) { p.ObjectState = ObjectState.Added; _unitOfWork.Repository <Product>().Insert(p); return(p); }
public MaterialPlanSettings GetMaterialPlanSettings(int SiteId, int?DivisionId) { return(_unitOfWork.Repository <MaterialPlanSettings>().Query().Get().Where(m => m.DivisionId == DivisionId && m.SiteId == SiteId).FirstOrDefault()); }
public ProcessSequenceLine Create(ProcessSequenceLine S) { S.ObjectState = ObjectState.Added; _unitOfWork.Repository <ProcessSequenceLine>().Insert(S); return(S); }
public PurchaseQuotationLine Create(PurchaseQuotationLine S) { S.ObjectState = ObjectState.Added; _unitOfWork.Repository <PurchaseQuotationLine>().Insert(S); return(S); }
public RateListLineHistory Find(int Id) { return(_unitOfWork.Repository <RateListLineHistory>().Find(Id)); }
public LeaveType Find(int id) { return(_unitOfWork.Repository <LeaveType>().Find(id)); }
public ProductIncludedAccessories Create(ProductIncludedAccessories pt) { pt.ObjectState = ObjectState.Added; _unitOfWork.Repository <ProductIncludedAccessories>().Insert(pt); return(pt); }
public JobInvoiceRateAmendmentLine Find(int id) { return(_unitOfWork.Repository <JobInvoiceRateAmendmentLine>().Find(id)); }
public JobOrderLineExtended Find(int id) { return(_unitOfWork.Repository <JobOrderLineExtended>().Find(id)); }
public JobInvoiceHeader Find(int id) { return(_unitOfWork.Repository <JobInvoiceHeader>().Find(id)); }
public SalesTaxProductCode Find(int id) { return(_unitOfWork.Repository <SalesTaxProductCode>().Find(id)); }
public DrawBackTariffHead Find(int id) { return(_unitOfWork.Repository <DrawBackTariffHead>().Find(id)); }
public ProdOrderLineStatus Find(int id) { return(_unitOfWork.Repository <ProdOrderLineStatus>().Find(id)); }
public JobOrderHeaderStatus Find(int id) { return(_unitOfWork.Repository <JobOrderHeaderStatus>().Find(id)); }
public Dimension1 Find(int id) { return(_unitOfWork.Repository <Dimension1>().Find(id)); }
public PurchaseInvoiceHeader Find(int id) { return(_unitOfWork.Repository <PurchaseInvoiceHeader>().Find(id)); }
public PurchaseIndentCancelHeader Find(int id) { return(_unitOfWork.Repository <PurchaseIndentCancelHeader>().Find(id)); }
public ProcessSequenceHeader Create(ProcessSequenceHeader s) { s.ObjectState = ObjectState.Added; _unitOfWork.Repository <ProcessSequenceHeader>().Insert(s); return(s); }
public PurchaseOrderCancelLine Find(int id) { return(_unitOfWork.Repository <PurchaseOrderCancelLine>().Find(id)); }
public UnitConversion Find(int pt) { //return UnitConversionRepository.Include(r => r.SalesOrder).Get().Where(i => i.SalesOrderDetailId == pt).FirstOrDefault(); return(_unitOfWork.Repository <UnitConversion>().Find(pt)); }
public BusinessEntity GetBusinessEntity(int BusinessEntityId) { return(_unitOfWork.Repository <BusinessEntity>().Find(BusinessEntityId)); }
public SalesTaxGroupProduct Find(int id) { return(_unitOfWork.Repository <SalesTaxGroupProduct>().Find(id)); }
public JobOrderPerk Find(int id) { return(_unitOfWork.Repository <JobOrderPerk>().Find(id)); }