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