Ejemplo n.º 1
0
 public IEnumerable <Product> GetProducts()
 {
     using (var context = new HHCoAppsEntities())
     {
         return(GetProducts(context.Products).ToList());
     }
 }
Ejemplo n.º 2
0
 public IEnumerable <Product> GetProductsBySupplierId(int supplierId)
 {
     using (var context = new HHCoAppsEntities())
     {
         return(GetProductsBySupplierId(context.Products, supplierId).ToList());
     }
 }
Ejemplo n.º 3
0
 public IEnumerable <Category> GetCategories()
 {
     using (var context = new HHCoAppsEntities())
     {
         return(GetCategories(context.Categories).ToList());
     }
 }
Ejemplo n.º 4
0
 public Category GetCategoryById(int categoryId)
 {
     using (var context = new HHCoAppsEntities())
     {
         return(GetCategoryById(categoryId, context.Categories));
     }
 }
Ejemplo n.º 5
0
 public IEnumerable <Supplier> GetSuppliers()
 {
     using (var context = new HHCoAppsEntities())
     {
         return(GetAllSuppliers(context.Suppliers).ToList());
     }
 }