public async Task <TeamView[]> GetTeamsByProjectAsync(Guid projectId) { var result = await _teamRepository.GetAllTeamsByProjectAsync(projectId); return(result.Select(team => team.Map()).ToArray()); }