/// <summary>
        ///     Заполнение списка
        /// </summary>
        /// <param name="search">Строка поиска</param>
        /// <returns>Список</returns>
        public override IEnumerable FillSelect(string search)
        {
            if (AutonomySelect)
            {
                if (!string.IsNullOrEmpty(search))
                {
                    return(InnerLinks.Where(t => t.LinkName.Contains(string.Format("{0}", search))));
                }

                var tempLinkList = new List <Link>();

                if (!string.IsNullOrEmpty(search))
                {
                    tempLinkList.AddRange(
                        InnerLinks.Where(t => t.LinkName.Contains(string.Format("{0}", search)))
                        .Select(links => new Link(links.LinkID, links.LinkName)));
                    return(tempLinkList);
                }

                tempLinkList.AddRange(InnerLinks.Select(links => new Link(links.LinkID, links.LinkName)));

                return(tempLinkList);
            }

            base.FillSelect(search);
            return(GetPersonLinks());
        }
        /// <summary>
        ///     Получение связи лиц по ID
        /// </summary>
        /// <param name="id">ID</param>
        /// <param name="name">Name </param>
        /// <returns>Компания</returns>
        public override object GetObjectById(string id, string name = "")
        {
            if (AutonomySelect)
            {
                return(new Link(InnerLinks.Where(t => t.LinkID == id).Select(t => t.LinkID).FirstOrDefault(),
                                InnerLinks.Where(t => t.LinkID == id).Select(t => t.LinkName).FirstOrDefault()));
            }

            return(new Link(id));
        }