public ContactDetailsController(ILogger <ContactDetailsController> logger,
                                 PagingHeaderHelper pagingHeaderHelper,
                                 ContactDetailsManager manager)
 {
     _logger             = logger;
     _pagingHeaderHelper = pagingHeaderHelper;
     _manager            = manager;
 }
        // Protected implementation of Dispose pattern.
        protected override void Dispose(bool disposing)
        {
            if (_disposed)
            {
                return;
            }

            if (disposing)
            {
                // Free any other managed objects here.
                if (_manager != null)
                {
                    _manager.Dispose();
                    _manager = null;
                }
            }

            // Free any unmanaged objects here.
            _disposed = true;

            // Call the base class implementation.
            base.Dispose(disposing);
        }