public async Task UpdateAsync(Domain.Workplace.DocumentsDeskState.DocumentDeskState documentDeskState, IEnumerable <string> properties)
        {
            try
            {
                await database.Connect().ConfigureAwait(false);

                await database.Update(documentDeskState, properties).ConfigureAwait(false);
            }
            catch (Exception ex)
            {
                exceptionLogger.Log(new ApplicationError(ex), LogLevel.Error, logConfiguration);
                throw new DatabaseException("The error occured while updating the desk state");
            }
        }
        public async Task UpdateDeskStateAsync(Domain.Workplace.DocumentsDeskState.DocumentDeskState documentDeskState)
        {
            try
            {
                await database.Connect();

                await database.Update(documentDeskState);
            }
            catch (Exception ex)
            {
                exceptionLogger.Log(new ApplicationError(ex), LogLevel.Error, logConfiguration);
                throw new DatabaseException("The error occured while updating the desk state", ex);
            }
        }