예제 #1
0
        public List <Category> CategoryComboItem()

        {
            NewPurchaseRepository _newPurchaseRepository = new NewPurchaseRepository();

            return(_newPurchaseRepository.CategoryComboItem());
        }
예제 #2
0
        public List <Supplier> SupplierComboItem()

        {
            NewPurchaseRepository _newPurchaseRepository = new NewPurchaseRepository();

            return(_newPurchaseRepository.SupplierComboItem());
        }
예제 #3
0
        public bool AddPurchase(List <NewPurchase> purchases)
        {
            bool isAdded = false;
            NewPurchaseRepository _newPurchaseRepository = new NewPurchaseRepository();

            foreach (NewPurchase newPurchase in purchases)
            {
                isAdded = _newPurchaseRepository.AddPurchase(newPurchase);
            }

            return(isAdded);
        }
예제 #4
0
        public int AvailableQuantity(int productId)
        {
            NewPurchaseRepository _newPurchaseRepository = new NewPurchaseRepository();

            return(_newPurchaseRepository.AvailableQuantity(productId));
        }
예제 #5
0
        public NewPurchase LastPurchaseInfo(int productId)
        {
            NewPurchaseRepository _newPurchaseRepository = new NewPurchaseRepository();

            return(_newPurchaseRepository.LastPurchaseInfo(productId));
        }
예제 #6
0
        public Product SearchProductById(int id)
        {
            NewPurchaseRepository _newPurchaseRepository = new NewPurchaseRepository();

            return(_newPurchaseRepository.SearchProductById(id));
        }
예제 #7
0
        public List <Product> GetProductFromCategory(int categoryId)
        {
            NewPurchaseRepository _newPurchaseRepository = new NewPurchaseRepository();

            return(_newPurchaseRepository.GetProductFromCategory(categoryId));
        }