Пример #1
0
        public ActionResult Sources()
        {
            List <Source> lista = repoSou.GetElements().OrderBy(x => x.Name).Take(10).ToList();

            return(View(lista));
        }
Пример #2
0
        public static bool SourceExist(string addr, IRepoSou repo)
        {
            string domain = GetDomain(addr);

            return(repo.GetElements().Any(x => x.Domain == domain));
        }