/// <summary> /// Searches for a teammate with specific value that could be found in the first and/or lastname /// </summary> /// <param name="term"></param> /// <returns></returns> public virtual IEnumerable <GetTeammateResponse> SearchTeam(string term) { var list = service.SearchTeam(term); if (list.Count() <= 0) { return(null); } return(list.Select <Teammate, GetTeammateResponse>( player => mapper.Map <Teammate, GetTeammateResponse>(player) )); }