This is inside a method (basically its just this), I try to get the neededValue otherwise I pass back what was passed in...
private static string GetNeededValue(string param)
{
string tValue = "";
if (!string.IsNullOrEmpty(param))
{
var map = repo.Item(string.Format("CoverageName LIKE '{0}'",param));
tValue = map == null ? param : map.theNeededValue;
}
return tValue;
}