Esempio n. 1
0
        public IActionResult UpdateQuestion(int id)
        {
            QuestionRepository repo  = new QuestionRepository();
            AbQuestion         quest = repo.GetQuestion(id);

            repo.AssignCat(quest);

            //repo.UpdateQuestion(quest);

            if (quest == null)
            {
                return(View("QuestionNotFound"));
            }
            return(View(quest));
        }