示例#1
0
        /// <summary>
        /// Remove specified tags from tag list.
        /// And if they exist in site list or actress list, remove them from the list too.
        /// </summary>
        /// <param name="tags">Tags to be removed</param>
        public void RemoveTags(params string[] tags)
        {
            foreach (string tagName in tags)
            {
                if (_tags.ContainsKey(tagName))
                {
                    _tags.Remove(tagName);
                }

                if (Sites.Contains(tagName))
                {
                    Sites.Remove(tagName);
                }

                if (Actresses.Contains(tagName))
                {
                    Actresses.Remove(tagName);
                }
            }
        }
示例#2
0
 public void Create(Actor a)
 {
     Actresses.Add(a);
     SaveChanges();
 }
示例#3
0
 public bool AddActress(string actress)
 {
     return(Actresses.Add(actress));
 }