I am practicing the demo MVC 2.0, but when I create a variable, Visual Studio shows an error
Cannot assign method group to an implicitly-typed local variable
Can you help me to resolve the problem? Here's the code:
public ActionResult ShowAllProducts()
{
var allProducts = repository.FindAllProducts;
return View(allProducts);
}