/// <summary>
        /// disable an artist and set performances after now
        /// </summary>
        /// <param name="artist"></param>
        /// <returns></returns>
        public bool DeleteArtist(Artist artist)
        {
            IArtistDao dao      = DALFactory.CreateArtistDao(database);
            Artist     toDelete = dao.findById(artist.Id);

            if (toDelete == null)
            {
                return(false);
            }
            toDelete.Deleted = true;
            bool success = dao.Update(toDelete);

            if (success)
            {
                IPerformanceDao     performanceDao = DALFactory.CreatePerformanceDao(database);
                IList <Performance> performances   = performanceDao.FindPerformanceForArtistsAfterDate(toDelete, DateTime.Now);
                foreach (Performance p in performances)
                {
                    Console.WriteLine("found performances " + p.Id + "artist " + p.Artist.Name);
                    p.Canceld = true;
                    success   = performanceDao.Update(p);
                }
            }
            return(success);
        }