Ejemplo n.º 1
0
        public List <ProductViewModel> GetProducts(int page, int productsPerPage)
        {
            List <Product>          products   = productAccess.GetProducts(page, productsPerPage);
            List <ProductViewModel> productsVM = Mapper.Map <List <ProductViewModel> >(products);

            return(productsVM);
        }
 public List <Product> GetProducts()
 {
     return(_productAccess.GetProducts());
 }