public IEnumerable <Product> GetProducts() { using (var context = new HHCoAppsEntities()) { return(GetProducts(context.Products).ToList()); } }
public IEnumerable <Product> GetProductsBySupplierId(int supplierId) { using (var context = new HHCoAppsEntities()) { return(GetProductsBySupplierId(context.Products, supplierId).ToList()); } }
public IEnumerable <Category> GetCategories() { using (var context = new HHCoAppsEntities()) { return(GetCategories(context.Categories).ToList()); } }
public Category GetCategoryById(int categoryId) { using (var context = new HHCoAppsEntities()) { return(GetCategoryById(categoryId, context.Categories)); } }
public IEnumerable <Supplier> GetSuppliers() { using (var context = new HHCoAppsEntities()) { return(GetAllSuppliers(context.Suppliers).ToList()); } }