Example #1
0
        public List <DTO> Words(int subcategoryId)
        {
            HandleLanguages(out int native, out int learning);
            List <DTO> words = _wordsRepository.GetDTO(native, learning, subcategoryId);

            return(words);
        }
        public async Task <IActionResult> Manual(int categoryId)
        {
            Tuple <int, int> ids            = Helper.GetLanguagesId();
            int             nativeLang      = ids.Item1;
            int             learningLang    = ids.Item2;
            WordsRepository wordsRepository = new WordsRepository();
            List <DTO>      words           = wordsRepository.GetDTO(nativeLang, learningLang, categoryId);

            return(View(words));
        }