public ActionResult Sources() { List <Source> lista = repoSou.GetElements().OrderBy(x => x.Name).Take(10).ToList(); return(View(lista)); }
public static bool SourceExist(string addr, IRepoSou repo) { string domain = GetDomain(addr); return(repo.GetElements().Any(x => x.Domain == domain)); }