How will I write an Inline IF Statement in my C# Service class when setting my enum value according to what the database returned?
For example: When the database val
You can do inline ifs with
return y == 20 ? 1 : 2;
which will give you 1 if true and 2 if false.