title: How to write method in automapper class c#
body: <p>I am trying to write method in AutoMapper class. My situation is as below.</p>
  
  <pre><code>ClinicListVm = AutoMapperConfig.mapper
    .Map&lt;GetClinicsByUserName_Result, ClinicListViewModel&gt;(c);
  </code></pre>
  
  <p>I already map ClinicListViewModel with GetClinicsByUserName_Result now I want to manipulate one attribute my destination model as below.</p>
  
  <pre><code>ClinicListVm.ProgressBarCssClass = string.Empty;
  if (ClinicListVm.PercentComplete == 100)
  {
    ClinicListVm.ProgressBarCssClass = "progress-bar-success";
  }
  else if (DateTime.Now.Subtract(ClinicListVm.BillerStartDateTime ?? DateTime.Now).TotalDays &gt; MaxDaysInDataEntry)
  {
    // partial is a warning color
    ClinicListVm.ProgressBarCssClass = "progress-bar-partial";
  }
  </code></pre>
  
  <p>So, How I can include this code it self in automapper class.</p>
  
  <p>Thanks</p>