Exemple #1
0
        public ProductViewModel GetProductByReference(string reference)
        {
            Product          product   = productAccess.GetProductByReference(reference);
            ProductViewModel productVM = Mapper.Map <ProductViewModel>(product);

            return(productVM);
        }
Exemple #2
0
        public void Add(string reference, int quantity = 1)
        {
            Product product = productAccess.GetProductByReference(reference);

            cartAccess.Add(product, quantity);
        }