title: MCV6 EF Changing the sign of a decimal based on transaction type
body: <p>I'm storing transactions in an SQL database using EF code first and MVC6 I need to reverse the sign of the value based on the type of transaction. I want to do this at a central point so I don't have to make multiple changes throughout the app. i.e. on model creation or on the entity. Something like:</p>
  <pre><code>    public class Transactions : EntityBase
      {
          public TransactionType Type { get; set; }
  
          public decimal Amount
          {
              get
              {
                  if (Type == Type.Refund &amp;&amp; Amount &gt; 0)
                      return Amount * -1;
                  else
                      return Amount;
              }
              set { Amount = value; }
          }
      }
  </code></pre>
  <p>We could also store the value as a negative. Any suggestion on how best to achieve this?</p>