示例#1
0
 public bool RemoveKeyword(ApiKeyword keyword)
 {
     return _keywords.Remove(keyword);
 }
示例#2
0
        public ApiKeyword AddKeyword(string phrase)
        {
            var keyword = new ApiKeyword()
                {
                    Id = -1,
                    ProjectId = this.ProjectId,
                    GroupId = this.Id,
                    GroupName = this.GroupName,
                    Phrase = phrase,
                };

            _keywords.Add(keyword);
            return keyword;
        }