public IList <KeywordModel> GetByLevel(int level) { IList <Keyword> keywords = keywordRepository.GetByLevel(level); if (keywords == null) { return(null); }// else nothing return(mapper.Map <IList <Keyword>, IList <KeywordModel> >(keywords)); }