Esempio n. 1
0
        public async Task <IActionResult> Get(int SpeakerId)
        {
            try
            {
                var result = await _repository.GetSpeakerAsyncById(SpeakerId, true);

                return(Ok(result));
            }
            catch (System.Exception)
            {
                return(this.StatusCode(StatusCodes.Status500InternalServerError, "Falha no Banco de Dados!"));
            }
        }