コード例 #1
0
        public DirectorData[] FindByName(string directorNameOrLastName)
        {
            IEnumerable <DirectorData> incoming = _directorRepository.FindByName(directorNameOrLastName);

            return(incoming.Select(directorInfo => new DirectorData()
            {
                Name = directorInfo.Name, Id = directorInfo.Id
            }).ToArray());
        }