namespace HStation.Service
|
{
|
public class KeyWordHelper
|
{
|
public static List<string> ToList(string keyword)
|
{
|
if (string.IsNullOrEmpty(keyword))
|
{
|
return new List<string>();
|
}
|
|
return keyword.Split(new string[1] { "," }, StringSplitOptions.RemoveEmptyEntries).ToList();
|
}
|
|
public static string ToString(List<string> KeyWord)
|
{
|
if (KeyWord == null || KeyWord.Count < 1)
|
{
|
return string.Empty;
|
}
|
|
return string.Join(",", KeyWord);
|
}
|
}
|
}
|