예제 #1
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));
        }
예제 #2
0
        public void DeleteOutdoorCragCompletely(Guid cragID)
        {
            OutdoorCrag crag = new OutdoorCragDA().GetByID(cragID);

            new OutdoorCragDA().Delete(cragID);
            CFLogger.RecordModerateDeleteCrag(CurrentClimber.ID, crag.Name, crag.ClimbfindUrl);
        }
예제 #3
0
        public OutdoorCrag AddOutdoorCrag(OutdoorCrag crag, OutdoorPlace place)
        {
            crag.MessageBoardID = InsertNewMessageBoard();
            crag.ID             = Guid.NewGuid();

            OutdoorCragDA da = new OutdoorCragDA();

            OutdoorCrag newCrag = da.Insert(crag);

            //-- Send app notification email
            CFLogger.RecordModerateAddCrag(CurrentClimber.ID, newCrag.Name, place.CountryID, newCrag.ClimbfindUrl);

            return(newCrag);
        }