Beispiel #1
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);
        }
Beispiel #2
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);
        }