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)); }
public void DeleteOutdoorCragCompletely(Guid cragID) { OutdoorCrag crag = new OutdoorCragDA().GetByID(cragID); new OutdoorCragDA().Delete(cragID); CFLogger.RecordModerateDeleteCrag(CurrentClimber.ID, crag.Name, crag.ClimbfindUrl); }
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); }