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 -

javascript - data.match(var) not working it seems -

javascript - How can I pause a jQuery .each() loop, while waiting for user input? -