public async Task <ActionResult <IEnumerable <PerfilDto> > > Get() { try { var perfiles = await _perfilesRepo.ObtenerTodosAsync(); return(_mapper.Map <List <PerfilDto> >(perfiles)); } catch (Exception excepcion) { _logger.LogError($"Error en {nameof(Get)}: " + excepcion.Message); return(BadRequest()); } }