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

            entities.DeleteFloor(floorId);

            StudMapCache.RemoveMap(mapId);
        }