public ContactWithDetailsManager(ILogger <ContactWithDetailsManager> logger,
                                  IMapper mapper, IDbExceptionHelper dbExceptionHelper,
                                  IContactsUnitOfWork unitOfWork)
 {
     _logger            = logger;
     _mapper            = mapper;
     _dbExceptionHelper = dbExceptionHelper;
     _unitOfWork        = unitOfWork;
 }
        // Protected implementation of Dispose pattern.
        protected virtual void Dispose(bool disposing)
        {
            if (_disposed)
            {
                return;
            }

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

            // Free any unmanaged objects here.
            //
            _disposed = true;
        }
예제 #3
0
 public ContactController(IContactsUnitOfWork db)
 {
     this.db = db;
 }