Example #1
0
        public IQueryable <ProductViewModel> GetNextProduct(int noOfRecords, int starting)
        {
            var listofProducts = _productsRepo.GetProducts().Skip(starting).Take(noOfRecords);

            return(listofProducts.ProjectTo <ProductViewModel>(_autoMapper.ConfigurationProvider));
        }
Example #2
0
 public static List <Product_dto> GetProductList()
 {
     return(_context.GetProducts().ToList());
 }