public void Remove(PhotoSession session) { PhotoSession existingSession = GetSession(session.Id); if (existingSession != null) { ImageStorage.RemovePhoto(existingSession.PhotoFileName); PhotoSessionCollection.Remove(existingSession); } }
public void CopyId(PhotoSession other) { if (other != null) { Id = other.Id; Copy(other); } }
public void Add(PhotoSession session) { PhotoSession existingSession = GetSession(session.Id); if (existingSession == null) { PhotoSessionCollection.Insert(0, session); } }
public void Copy(PhotoSession other) { if (other != null) { Date = other.Date; Weight = other.Weight; Fat = other.Fat; Photo = other.Photo; PhotoFileName = other.PhotoFileName; } }