public async Task <IEnumerable <string> > SearchBranchInProject(string apiHost, string apiKey, string apiProjectId, string searchValue) { var apiClient = new GitLabClient(apiHost, apiKey); var apiBranches = await apiClient.SearchForBranchInProject(apiProjectId, searchValue); //Get list of branch names var branches = apiBranches.Select(b => b.Name); return(branches); }