public IActionResult ChangePrice(Product.Category category) { var typeProduct = myProducts.Where(prod => prod.Type == category).ToList(); return(View(typeProduct)); }
public IActionResult EditCategory(Product.Category category) { var list = myProducts.Where(p => p.Type == category).ToList(); return(View(list)); }