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