I am new to MVC and Entity Framework so excuse me if it is simple question. I am developing simple project(MVC5-EF6) that query the customer table based on First-name and last-name and return the customer info. I am using Entity Framework to call store proc
to return data. I have imported the database and everything seems working. The only thing I don't know is how show the return data using view?
I try to put the data in Model that I have created, and when I debug the data is there but not sure what should to return it in this line:
return View(customerModel);
as I am getting this error in this line by what I have now.
"The model item passed into the dictionary
is of type 'CustomerPortal_MVC.Models.CustomerModel',
but this dictionary requires a model item of type 'CustomerPortal_MVC.Customer'."
This is the method that call the store proc:
Go to the complete details ...