How can I avoid entering strings for known keys in C#
<p>I have the following code:</p>

<pre><code>switch(first)
{
    case 'A':
        vm.Content = contentService.Get("0001000", vm.RowKey);
        return View("Article", vm);
    case 'F':
        vm.Content = contentService.Get("0002000", vm.RowKey);
        return View("FavoritesList", vm);
}
</code></pre>

<p>'A' refers to a page type of Article with a key of "0001000"
'F' refers to a page type of Favorite with a key of "0002000"</p>

<p>Is there a way in C# that I could avoid having to code in the keys as a string?
Some way that would allow me to code in by the key abbreviation or name
and then have C# convert this to a string?</p>

<p>Can I use Enum for this?  This seems ideal but I am not sure how to set up an Enum.</p>
