pulling data from database I have this this
Result = main.Verified.Equals("1", StringComparison.OrdinalIgnoreCase) ? "Good Sale" : "Bad Sale";
Problem is that main.Verified
is sometimes null and so it crashes with object reference error
What is an easy way to fix?
I was looking at this, but I'm not sure it has the best solution ?? Coalesce for empty string?