// GET: Products public async Task <IActionResult> Index() { //var products = await _context.Products.ToListAsync(); //var products = await Task.Run(() => productRepository.Entities.Where(p => p.Status == true)); //CREATE var products = await OperationsPro.FindAllAsync(p => p.Status == true); //READ //UPDATE //DELETE //Reject Changes var model = Mapper.Map <IEnumerable <ProductDTO> >(products); return(View(model)); //return View(await _context.Products.ToListAsync()); }