asp.net mvc - C# ASP MVC: How to create a variable to execute this method -


Visual Studio shows an error

The method group for an inherent-type local variable can not be assigned

Do you want me Can help solve the problem? Here's the code:

  Show public performance All Products () {var allProducts = repository.FindAllProducts; See Return (All Products); }  

Add () at the end of the line Line:

  var All Products = The repository Fund Alprodt ();  

Comments

Popular posts from this blog

java - Can't add JTree to JPanel of a JInternalFrame -

asp.net mvc - How to attach sql database to a javascript graph -

c# - How to know the number of Threads created and limit the Tasks accordingly -