private string[] SerUsrSpottedInPhoto(Usr spottedUsr, int photoK, bool isInPhoto) { Photo p = new Photo(photoK); spottedUsr.SetSpottedInPhoto(p, Usr.Current, isInPhoto); return new string[] { p.UsrsInPhotoHtml, p.RolloverMouseOverText }; }
internal static void SetUsrSpotted(bool usrHasBeenSpottedInPhoto, Photo photo, Usr spottedUsr, Usr currentUsr) { if (!photo.Validate()) { throw new DsiUserFriendlyException("You don't have permission to add to this photo!"); } spottedUsr.SetSpottedInPhoto(photo, currentUsr, usrHasBeenSpottedInPhoto); }