SourcefileDto GetSourcefileByName(Guid repositoryId, string name) { RepositoryListDto repository = GetRepositoryListById(repositoryId); return(repository.Sourcefiles.Where(sourcefile => sourcefile.Name == name).FirstOrDefault()); }
public void AddRepositoryListSourcefile(Guid repositoryListId, int version, SourcefileDto sourcefile) { RepositoryListDto repositoryList = GetRepositoryListById(repositoryListId); repositoryList.AddSourcefile(version, sourcefile); }
public void AddRepositoryListSourcefileTag(Guid repositoryListId, int version, string sourcefilename, string tag) { RepositoryListDto repository = GetRepositoryListById(repositoryListId); repository.AddTag(version, sourcefilename, tag); }
public void AddRepositoryList(RepositoryListDto repositoryList) { _repositoryLists.Add(repositoryList); }