Exemple #1
0
        public EntityRefsellDetail GetDetail(int FK_QuotationID, int FK_BuildOfMaterialsID)
        {
            var data = base.DataContext.RefsellQuotation.Where(p => p.Fk_QuotationID == FK_QuotationID && p.Fk_ProductID == FK_BuildOfMaterialsID);

            if (data.Count() == 1)
            {
                return(FactoryRefsellDetail.Get(data.Single()));
            }
            else
            {
                return(null);
            }
        }
Exemple #2
0
        public EntityRefsellDetail Get(int Id)
        {
            var data = base.DataContext.RefsellQuotation.Where(p => p.PK_RefsellDetailID == Id);

            if (data.Count() == 1)
            {
                return(FactoryRefsellDetail.Get(data.Single()));
            }
            else
            {
                return(null);
            }
        }