コード例 #1
0
 public PerguntaViewModel BuscarProximaPergunta(
     [FromServices] IPerguntaAppService _perguntaAppService,
     int idRespostaPai,
     string respostaPai)
 {
     return(_perguntaAppService.BuscarProximaPergunta(idRespostaPai, respostaPai));
 }
コード例 #2
0
ファイル: PerguntaController.cs プロジェクト: radtek/4Health
 public PerguntaController(IPerguntaAppService appService)
 {
     this.appService = appService;
 }
コード例 #3
0
 public PerguntaViewModel Buscar(int id,
                                 [FromServices] IPerguntaAppService _perguntaAppService)
 {
     return(_perguntaAppService.BuscarPorId(id));
 }
コード例 #4
0
 public IEnumerable <PerguntaViewModel> BuscarTodos([FromServices] IPerguntaAppService _perguntaAppService)
 {
     return(_perguntaAppService.BuscarTodos());
 }