public List<int> ParseStopIds(string stopIds)
{
if (string.IsNullOrWhiteSpace(stopIds))
{
return new List<int>();
}
// ToList() this to force any parsing exception to happen here,
// rather than later, because I'm lazy and don't wanna reason my way
// through deferred execution and exception-handling.
return stopIds.Split(',').Select(id => int.Parse(id)).ToList();
}