I am very new to ASP.NET/MVC/LINQ. I have three table in my database and their corresponding models in my solution:
salesperson
id
, name
, address
, dob
sales
id
, shopid
, salespersonid
, productid
, AmountSale
, saleDate
Shop
id
, shopName
, Location
I also have a stored procedure which will return following data for all sales person:
SalesPersonid
, TotalAmount_Sale
, Most_Recent_ShopName
, Count_Of_sales_Lifetime
, count_of_sales_ThisMonth
How do I call the stored procedure using LINQ and display the data in the front end? All of the samples I've seen so far return a model which already exists. I am very confused please help.