public List <Category> CategoryComboItem() { NewPurchaseRepository _newPurchaseRepository = new NewPurchaseRepository(); return(_newPurchaseRepository.CategoryComboItem()); }
public List <Supplier> SupplierComboItem() { NewPurchaseRepository _newPurchaseRepository = new NewPurchaseRepository(); return(_newPurchaseRepository.SupplierComboItem()); }
public bool AddPurchase(List <NewPurchase> purchases) { bool isAdded = false; NewPurchaseRepository _newPurchaseRepository = new NewPurchaseRepository(); foreach (NewPurchase newPurchase in purchases) { isAdded = _newPurchaseRepository.AddPurchase(newPurchase); } return(isAdded); }
public int AvailableQuantity(int productId) { NewPurchaseRepository _newPurchaseRepository = new NewPurchaseRepository(); return(_newPurchaseRepository.AvailableQuantity(productId)); }
public NewPurchase LastPurchaseInfo(int productId) { NewPurchaseRepository _newPurchaseRepository = new NewPurchaseRepository(); return(_newPurchaseRepository.LastPurchaseInfo(productId)); }
public Product SearchProductById(int id) { NewPurchaseRepository _newPurchaseRepository = new NewPurchaseRepository(); return(_newPurchaseRepository.SearchProductById(id)); }
public List <Product> GetProductFromCategory(int categoryId) { NewPurchaseRepository _newPurchaseRepository = new NewPurchaseRepository(); return(_newPurchaseRepository.GetProductFromCategory(categoryId)); }