public EntityTypeQuotation Get(int Id) { var data = base.DataContext.TypeQuotation.Where(p => p.PK_TypeQuotation == Id); if (data.Count() == 1) { return(FactoryTypeQuotation.Get(data.Single())); } else { return(null); } }
public List <EntityTypeQuotation> GetAll() { return(FactoryTypeQuotation.GetList(base.DataContext.TypeQuotation.ToList())); }
public List <EntityTypeQuotation> GetActives() { return(FactoryTypeQuotation.GetList(base.DataContext.TypeQuotation.Where(p => p.Status == true).ToList())); }