public async Task <ActionResult <IEnumerable <PerfilDto> > > Get()
        {
            try
            {
                var perfiles = await _perfilRepositorio.ObtenerTodosAsync();

                return(_mapper.Map <List <PerfilDto> >(perfiles));
            }
            catch (Exception ex)
            {
                _logger.LogError($"Error en {nameof(Get)}: " + ex.Message);
                return(BadRequest());
            }
        }