Esempio n. 1
0
        public void AddWordToLesson(string wordId, string token, string courseId, string lessonName)
        {
            if (AuthLogic.CheckToken(token) == "")
            {
                throw new Exception("NotAuthorized");
            }

            Word word = Word.GetWord(wordId);

            if (!Lesson.AddWordToLesson(courseId, lessonName, word.ModelWord))
            {
                throw new Exception("Something went wrong...");
            }
        }