Exemple #1
0
 public ProductRecommender Get(int id)
 {
     using (ProductRecoEntities entities = new ProductRecoEntities())
     {
         return(entities.ProductRecommenders.FirstOrDefault(p => p.Id == id));
     }
 }
Exemple #2
0
 public IEnumerable <ProductRecommender> Get()
 {
     using (ProductRecoEntities entities = new ProductRecoEntities())
     {
         return(entities.ProductRecommenders.ToList());
     }
 }