Ejemplo n.º 1
0
        public void DeleteOutdoorPlaceCompletely(int ID)
        {
            if (!IsAdmin)
            {
                throw new Exception("Only admin can delete places");
            }

            Place place = new PlaceDA().GetByID(ID);

            new OutdoorPlaceDA().Delete(ID);
            new PlaceDA().Delete(ID);

            CFDataCache.CacheAllOutdoorPlaces();

            CFLogger.RecordModerateDeletePlace(CurrentClimber.ID, place.Name, place.CountryID, place.ClimbfindUrl);
        }