Ejemplo n.º 1
0
 public async Task <IActionResult> Page(AnswerQuery answerQuery)
 {
     return(Success(await _answerService.PageAsync(answerQuery)));
 }
Ejemplo n.º 2
0
        public async Task <ListResult <AnswerDto> > QueryListAsync(AnswerQuery query)
        {
            var result = await _answerRepository.QueryListAsync(query);

            return(Mapper.Map <ListResult <Answer>, ListResult <AnswerDto> >(result));
        }
Ejemplo n.º 3
0
 public async Task <IActionResult> Get(AnswerQuery answerQuery)
 {
     return(Success(await _answerService.RetrieveAsync(answerQuery)));
 }
Ejemplo n.º 4
0
 private string GetInsertionAnswerLine(AnswerQuery answer)
 {
     return
         ($"EXECUTE [dbo].[addAnswerBot] {answer.UserId}, {answer.QuestionId}, {(int) answer.AnswerType}, '{answer.AnsweredDate:u}'");
 }