Пример #1
0
 protected override void Dispose(bool disposing)
 {
     if (disposing)
     {
         rep.Dispose();
     }
     base.Dispose(disposing);
 }
Пример #2
0
 public void Dispose()
 {
     if (_disposed)
     {
         return;
     }
     _genreRepository?.Dispose();
     _disposed = true;
     GC.SuppressFinalize(this);
 }
Пример #3
0
 public void Dispose()
 {
     _genreRepository.Dispose();
 }
Пример #4
0
 protected override void Dispose(bool disposing)
 {
     genreRepository.Dispose();
     base.Dispose(disposing);
 }