Exemplo n.º 1
0
        public async Task Create(QuestionViewModel _question)
        {

            Question question = mapper.Map<Question>(_question);

            await reposytory.AddAsync(question);
        }
Exemplo n.º 2
0
        public async Task Edit(QuestionViewModel _question)
        {


            Question question = mapper.Map<Question>(_question);

            await reposytory.UpdateAsync(question);
        }
Exemplo n.º 3
0
        public async Task<ActionResult> Edit(QuestionViewModel questionViewModel)
        {

            await questionService.Edit(questionViewModel);
            return Content("Question was edited");
        }
Exemplo n.º 4
0
 public async Task<ActionResult> Create(QuestionViewModel questionViewModel)
 {      
     await questionService.Create(questionViewModel);
     return Content("Question was added!");
 }