//public IQueryable<RoomConfiguration> RoomConfigurations => context.RoomConfigurations;

        public async Task <Room> GetRoomWitConfig(int roomId)
        {
            var room = context.Rooms.FirstOrDefault(rm => rm.Id == roomId);

            await context.Entry(room).Reference(r => r.RoomConfiguration).LoadAsync();

            return(room);
        }
        public async Task SaveRanking(Ranking ranking)
        {
            if (ranking.Id == 0)
            {
                await context.AddAsync(ranking);
            }
            else
            {
                context.Entry(ranking).State = Microsoft.EntityFrameworkCore.EntityState.Modified;
            }

            await context.SaveChangesAsync();
        }