I am working on creating an MVC application for an existing Bug tracker of sorts, ASP.net Web site.
I am used to passing data in the querysting of a Web site and am not sure how to go about doing that in MVC. I do understand the MVC model and how things work but as a beginner, my thought process is a bit clouded.
Views/Project/Index.aspx - My first page, List of projects
<ul id="ProjectList">
<% foreach (var item in Model) { %>
<li><%= Html.ActionLink("Details", "IssueType", new { id=item.ProjectId })%></li>
<% } %>
</ul>
In my ASP.Net web site, in order to create an Issue for this project, I end up with a url looking like this:
Issue.aspx?pid=3&issuetypeid=6
I go from
Projects.aspx --> IssueTypes.aspx --> Issue.aspx
collecting the projectId and issueTypeId on the way in the querystring.
This enables me to write to the DB knowing the ProjectID and Issue Type ID.
How would something like this be architectured in MVC?