title: Inline IF Statement in C#
body: <p>How will I write an Inline IF Statement in my C# Service class when setting my enum value according to what the database returned?</p>
  
  <p>For example: When the database value returned is 1 then set the enum value to VariablePeriods, when 2 then FixedPeriods.</p>
  
  <p>Hope you can help.</p>