示例#1
0
        public List <DboLinks> GetAllMyLinks()
        {
            var result = new List <DboLinks>();

            result = _linksRepo.GetLinks();

            foreach (var item in result)
            {
                var urlD = new Uri(item.Url);
                if (string.IsNullOrWhiteSpace(item.ImageUrl))
                {
                    item.ImageUrl = "http://www.google.com/s2/favicons?domain=" + urlD.Host;
                }
            }

            result = result.FindAll(find => find.IsActive);
            return(result);
        }
示例#2
0
        public List <dboSearchProviders> GetSearchProviders()
        {
            var result = _spRepo.GetLinks();

            return(result);
        }