public TripRepository(TripContext tripContext)
 {
     _ctx = tripContext;
 }
        protected virtual void Dispose(bool disposing)
        {
            if (disposing)
            {
                if (_ctx != null)
                {
                    _ctx.Dispose();
                    _ctx = null;
                }

            }
        }
 private DeletePicture()
 {
     _ctx = new TripContext(@"app_data/tripstore.json");
     _tripRepository = new TripRepository(_ctx);
 }