コード例 #1
0
        private void SaveOutdoorPlacePicture(OutdoorPlace place)
        {
            OutdoorPlaceDA da = new OutdoorPlaceDA();

            da.Update(place);
            CFLogger.RecordModerateEdit(CurrentClimber.ID, string.Format("Changed picture for outdoor place {0}[{1}]", place.Name, place.ID));
        }
コード例 #2
0
        private void SaveOutdoorCragPicture(OutdoorCrag crag)
        {
            OutdoorCragDA da = new OutdoorCragDA();

            da.Update(crag);
            CFLogger.RecordModerateEdit(CurrentClimber.ID, string.Format("Changed picture for outdoor crag {0}[{1}]", crag.Name, crag.ID));
        }
コード例 #3
0
        public Place UpdatePlaceCoordinates(Place place)
        {
            //-- Send app notification email
            CFLogger.RecordModerateEdit(CurrentClimber.ID, string.Format("{0} updated {1}[c{2}] coordinates at {3}",
                                                                         CurrentClimber.Email, place.Name, place.CountryID, place.ClimbfindUrl));

            return(new PlaceDA().Update(place));
        }
コード例 #4
0
        public IndoorPlace UpdateIndoorPlace(IndoorPlace place)
        {
            IndoorPlaceDA indoorPlaceDA = new IndoorPlaceDA();

            place.FriendlyUrlName = place.Name.GetFriendlyUrlName();

            indoorPlaceDA.Update(place);

            PlaceDA placeDA = new PlaceDA();

            placeDA.Update(place);

            //-- Send app notification email
            CFLogger.RecordModerateEdit(CurrentClimber.ID, string.Format("{0} updated {1}[c{2}] details at {3}",
                                                                         CurrentClimber.Email, place.Name, place.CountryID, place.ClimbfindUrl));

            return(place);
        }
コード例 #5
0
        public OutdoorPlace UpdateOutdoorPlace(OutdoorPlace outdoorPlace)
        {
            OutdoorPlaceDA outdoorPlaceDA = new OutdoorPlaceDA();

            outdoorPlace.DescriptionLastUpdated = DateTime.Now;
            outdoorPlace.DescriptionByUserID    = CurrentClimber.ID;
            outdoorPlace.FriendlyUrlName        = outdoorPlace.Name.GetFriendlyUrlName();

            outdoorPlaceDA.Update(outdoorPlace);

            PlaceDA placeDA = new PlaceDA();

            placeDA.Update(outdoorPlace);

            //-- Send app notification email
            CFLogger.RecordModerateEdit(CurrentClimber.ID, string.Format("{0} updated {1}[c{2}] details at {3}",
                                                                         CurrentClimber.Email, outdoorPlace.Name, outdoorPlace.CountryID, outdoorPlace.ClimbfindUrl));

            return(outdoorPlace);
        }