예제 #1
0
        public List <SelectListSerialization> GetAuthorsBySearchTextForList(string searchText)
        {
            List <SelectListSerialization> authors = new List <SelectListSerialization>();

            foreach (var item in _authorDao.GetAuthorsBySearchTextForList(searchText))
            {
                authors.Add(new SelectListSerialization(item.Id, $"{item.FirstName }{item.LastName }"));
            }
            return(authors);
        }