public List <WordTranslationModel> Post(SearchWordTranslationModel model) { if (model == null) { throw new ArgumentNullException("model", "Search model can't be null"); } if (model.SearchByTag) { return(wordTranslationMapper .MapRange(wordTranslationService.GetAllByTags(model.Tags, model.LanguageId))); } else { return(wordTranslationMapper .MapRange(wordTranslationService.GetTopBySearchWord(model.SearchWord, model.LanguageId))); } }