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); } }
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); } }