public List <WordDTO> GetByCategoryId(int categoryId) { var list = _WordRepository.GetByCategoryId(categoryId); return(list.Select(data => Mapper.Map <WordDTO>(data)).ToList()); }