Example #1
0
        public static void DeleteGraphForFloor(MapsEntities entities, int floorId)
        {
            Floors floor = entities.Floors.Find(floorId);
            if (floor == null)
                throw new ServiceException(ResponseError.FloorIdDoesNotExist);
            int mapId = floor.MapId;

            entities.DeleteGraphFromFloor(floorId);

            StudMapCache.RemoveMap(mapId);
        }