public IActionResult Get()
 {
     try
     {
         var results = EventoAdapter.DomainToViewModel(_eventoRepository.GetAll().OrderBy(x => x.Tema));
         return(Ok(results));
     }
     catch (Exception ex)
     {
         return(this.StatusCode(StatusCodes.Status500InternalServerError, ex.Message));
     }
 }
        public async Task <IActionResult> Get(string identifyer)
        {
            try
            {
                var evento = await _eventoRepository.GetEventoByIdentifier(identifyer);

                var result = EventoAdapter.DomainToViewModel(evento);
                return(Ok(result));
            }
            catch (Exception ex)
            {
                return(this.StatusCode(StatusCodes.Status500InternalServerError, ex.Message));
            }
        }
        public async Task <IActionResult> Get(int id)
        {
            var result = EventoAdapter.DomainToViewModel(await _eventoRepository.GetAllEventosAsyncById(id, false));

            return(Ok(result));
        }