title: Persistent data in an ASP.NET MVC controller
body: <p>I want to use the same view to insert and update data in a database.</p>
  
  <p>When I am in the "edit mode", I need to know what are the values before and after the edition (to know what has changed and perform operations based on that).</p>
  
  <p>I cannot store the "before edit" data in the model, as there are not mapped and I cannot store that data in the controller as a new instance is created between get and post.</p>
  
  <p>For instance I have no other idea that using a static class or hidden fields but it doesn't sound to me to be a good practice.</p>
  
  <p>How to achieve that in a proper way?</p>
  
  <p>Thanks</p>