Esempio n. 1
0
 public void Test_CreateImageQuestion_Question_Char_4()
 {
     NewImageQuestion          = NewImageQuestion_Copy;
     NewImageQuestion.Question = "1234";
     _postedFileBase           = new TestObjects.MyTestPostedFileBase(test_Stream, "test/content", "test-file.png");
     handler.CreateImageQuestion(NewImageQuestion, _postedFileBase, GameID);
 }
Esempio n. 2
0
        public ActionResult CreateImageQuestion(AddQuestionViewModel model, HttpPostedFileBase file)
        {
            question_Handler.CreateImageQuestion(model.Question.ImageQuestion, file, model.GameID);

            return(RedirectToAction("Questions", new { model.GameID }));
        }