title: Where should I put automapper code?
body: <p>I'm using Automapper in Asp.net mvc application.
  I have a question regard to the usage of automapper</p>
  
  <p>from lots of sample code, I saw people use mapper <code>Mapper.Map&lt;Target&gt;(source)</code> directly in action, I'm not sure if this is good prctice, in my point of view, I would like to wrap the <code>Mapper</code> code in the proxy object instead of let it talk with <code>controller</code> directly</p>
  
  <pre><code>      public BankflowData CreateBankflowAdjustments(BankflowData addedBankFlow)
        {
           var bankflow = Mapper.Map&lt;Bankflow&gt;(addedBankFlow);
           var newBankflow = Underlying.CreateBankFlowAdjustments(bankflow);
           return Mapper.Map&lt;BankflowData&gt;(newBankflow);
        }
  </code></pre>
  
  <p>in this example, controller know nothing about Class <code>Bankflow</code>, all it know is the dto <code>BankflowData</code>.</p>
  
  <p>I would like to know if this is a good practice for an application using AutoMapper?</p>