public IQueryable <ProductViewModel> GetNextProduct(int noOfRecords, int starting) { var listofProducts = _productsRepo.GetProducts().Skip(starting).Take(noOfRecords); return(listofProducts.ProjectTo <ProductViewModel>(_autoMapper.ConfigurationProvider)); }
public static List <Product_dto> GetProductList() { return(_context.GetProducts().ToList()); }