Example #1
0
 private void Dispose(bool disposing)
 {
     if (!_disposed)
     {
         if (disposing)
         {
             db.Dispose();
         }
     }
     _disposed = true;
 }
 private void Dispose(bool disposing)
 {
     if (!_disposed)
     {
         if (disposing)
         {
             using (var db = new HospitalTransparencyEntities())
             {
                 db.Dispose();
             }
         }
     }
     _disposed = true;
 }