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

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