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

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

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


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

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

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