title: Need httpcontext value in business layer
body: <p>I have an MVC4 project that calls a business layer method whose current signature is as below: </p>
  
  <pre><code>businessObject.BusinessMethod(param1, param2, param3)
  </code></pre>
  
  <p>In this business layer method I now need to have some data from the <code>HttpContext.Current.Session["SomeSessionValue"]</code> property. </p>
  
  <p>So instead of adding two more parameters using Resharpers refactoring feature, I want to club all of those three into an object and rename the signature as below </p>
  
  <pre><code>businessObject.BusinessMethod(myParametersObject)
  </code></pre>
  
  <p>This business layer method is used all over the solution and is tested code. If I use resharper to modify the method signature, I will now need to assign the values of param1, param2, param3 to the respective properties within the MyParameters class's object before calling the method <code>businessObject.BusinessMethod(myParametersObject)</code> </p>
  
  <p>There are over 2000 places I need to make this change. Is there a faster way to make this change? I don't want to manually change the code everywhere or add the HttpContext to the business layer. Can some OOP technique help me out here?</p>
  
  <p>Thanks.</p>