Exemple #1
0
        public async Task <IActionResult> Get([FromRoute][Required] ConsultarAnuncioRequest request)
        {
            var consultarAnuncioInput = new ConsultarAnuncioInput(request.IdAnuncio);
            await _consultarAnuncioUseCase.Execute(consultarAnuncioInput);

            return(_consultarAnuncioPresenter.ViewModel);
        }
Exemple #2
0
        public object GetExamples()
        {
            var request = new ConsultarAnuncioRequest
            {
                IdAnuncio = 1
            };

            return(request);
        }