Basic ASP.NET MVC query with parameter

hotkipje

New Member
I am new in ASP.Net MVC and MVC architecture in general. I'm building a simple application using the Database Code First method.I have a Recipe Model with a property called \[code\]cookId\[/code\] which is the id of the user who created the recipe. Now I want to be able to pass a querystring to my page and get ONLY the recipes where the cookId is the same as the parameter and list i on my View.How can I achieve this? Where should i put this logic? In my \[code\]controller\[/code\] or in my \[code\]view\[/code\]?
 
Back
Top