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); } }
public List <EntityRefsellDetail> GetActives() { return(FactoryRefsellDetail.GetList(base.DataContext.RefsellQuotation.Where(p => p.Status == true).ToList())); }
public List <EntityRefsellDetail> GetAll() { return(FactoryRefsellDetail.GetList(base.DataContext.RefsellQuotation.ToList())); }
public List <EntityRefsellDetail> GetByID(int Fk_QuotationDetail) { return(FactoryRefsellDetail.GetList(base.DataContext.RefsellQuotation.Where(p => p.Fk_QuotationID == Fk_QuotationDetail).OrderBy(p => p.Origen).ToList())); }