MVC design for archived data view <p>Implementation of a standard archive process in ASP.Net MVC. Backend SQL Server 2005</p> <p>We've an existing web app built in MVC. We've an Entity "Claim" and it has some child entities like ClaimDetails, Files, etc... A pretty standard setup in DB. Each entity has its own table and are linked via FK. Now, we need to have an "Archive" feature in web app which will allow admin to archive a Claim and its child entities. An archived Claim shud become <em>readonly</em> when visited again.</p> <p>Here're some points on which I need your valued opinion - </p> <blockquote> <ol> <li><p>To keep it simple and scalable (for a few million records) for now we plan to simply add a bit field "Archived" to the Claim table in db. And change the behavior accordingly in the web app.</p></li> <li><p>We've a 'Manage claim' page which renders a bunch of diff views for Claim and its child entities. Now, for a readonly view we can either use the same views or have a separate set of views. What do you suggest?</p></li> <li><p>At controller level, we can identify archived claim and select which view to render.</p></li> <li><p>At model level, though it'd be great to be able to use the same model used for Manage Claim - but it might not get us the "text" of some lookup fields. For example, Claim.BrandId is rendered as a dropdown in Manage claim (requires only BrandId) but for readonly view we need 'BrandText'.</p></li> <li><p>Any existing ref or architecture level example would be great.</p></li> </ol> </blockquote> <p>Here's my prev SO post but its more about db level changes: <a href="http://stackoverflow.com/questions/8313279/design-a-process-to-archive-data-sql-server-2005">Design a process to archive data (SQL Server 2005)</a></p> <p>Thank you.</p>