The problem: Using ASp.NET MVC for reporting.
Given: 1. A report that is tabular in output, so it can easiyl be represented by a class (static field list). 2. A filter mask containing halfa dozen or more possible conditions to apply to the data.
How is the approach for the MVC file layout?
- I would say one controller for the complete report.
- But how does the model look? One property with all the filter conditiond (or: a property per filter condition), one property with an enumeration of results?
I would also love to do a redirect when the search parameters change and would love to see the parameters as parameters (i.e. the URL ending in /Reports/Assets?From=...&To=...) so users can bookmark a specific favourite report or email the URL around.
How to do? I have a lon gbackground in ASP.NET, but MVC somehow eludes me ;)