public EntityQuotationDetail GetDetail(int FK_QuotationID, int FK_BuildOfMaterialsID) { var data = base.DataContext.QuotationDetail.Where(p => p.FK_QuotationID == FK_QuotationID && p.FK_itemID == FK_BuildOfMaterialsID); if (data.Count() == 1) { return(FactoryQuotationDetail.Get(data.Single())); } else { return(null); } }
public EntityQuotationDetail Get(int Id) { var data = base.DataContext.QuotationDetail.Where(p => p.PK_QuotationDetailID == Id); if (data.Count() == 1) { return(FactoryQuotationDetail.Get(data.Single())); } else { return(null); } }