Click here to Skip to main content
15,895,799 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
how can i get the data from my model in ASP.Net MVC ?

What I have tried:

this is the code i tried:
C#
public IActionResult ReportPdf()
{
    List<createcustomer> customerList = new List<createcustomer>();
    {
       return View(CreateCustomer.custumerList.ToList());
    };
}
Posted
Updated 10-Apr-18 2:39am
v2
Comments
#realJSOP 8-Apr-18 11:29am    
Are you using entity framework or ado?
Nathan Minier 9-Apr-18 7:36am    
The code for CreateCustomer.customerList would be more useful for troubleshooting than this snippet.
Abraham Andres Luna 10-Apr-18 15:44pm    
How come I can't see the user name of the person who asked this question on this details page?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900