コード例 #1
0
        public void addProductenInBestelling(ProductenInBestelling item)
        {
            ProductenInBestellingMapper mapper = new ProductenInBestellingMapper();

            try
            {
                mapper.addProductenInBestellingToDB(_connectionString, item);
            }
            catch (Exception ex)
            {
                mapper.updateProductenInBestellingToDB(_connectionString, item);
            }
        }
コード例 #2
0
        public List <ProductenInBestellenVoorEigenaar> GetPersonalProductenInBestelling(int idBestelling)
        {
            ProductenInBestellingMapper mapper = new ProductenInBestellingMapper();

            return(mapper.getPersonalProductenInBestelling(_connectionString, idBestelling));
        }
コード例 #3
0
        public bool DeleteProductenInBestelling(int idProduct, int idBestelling)
        {
            ProductenInBestellingMapper mapper = new ProductenInBestellingMapper();

            return(mapper.DeleteProductenInBestelling(_connectionString, idProduct, idBestelling));
        }
コード例 #4
0
        public List <ProductenInBestellenVoorEigenaar> GetAllProductenInBestelling()
        {
            ProductenInBestellingMapper mapper = new ProductenInBestellingMapper();

            return(mapper.getAllProductenInBestelling(_connectionString));
        }
コード例 #5
0
        //Producten in de bestelling
        public List <ProductenInBestelling> GetProductenInBestelling(int idBestelling)
        {
            ProductenInBestellingMapper mapper = new ProductenInBestellingMapper();

            return(mapper.getProductenInBestellingFromDB(_connectionString, idBestelling));
        }
コード例 #6
0
        public double GetPrijsProductenInBestelling(int idBestelling)
        {
            ProductenInBestellingMapper mapper = new ProductenInBestellingMapper();

            return(mapper.GetTussenTotaal(_connectionString, idBestelling));
        }