public RepoInfo GetRepoByImage(ImageInfo image) => AllRepos .FirstOrDefault(repoImage => repoImage.AllImages.Contains(image));
public RepoInfo GetRepoById(string id) { return(AllRepos.FirstOrDefault(repo => repo.Id == id)); }
public RepoInfo GetRepoByModelName(string name) { return(AllRepos.FirstOrDefault(repo => repo.Model.Name == name)); }