Beispiel #1
0
        public async Task UpdateDocumentStatus(long documentId, PhysicalDocumentStatus documentStatus)
        {
            var queryParameters = new DynamicParameters();

            queryParameters.Add("@PhysicalDocumentId", documentId);
            queryParameters.Add("@PhysicalDocumentStatusId", documentStatus);

            await ExecuteNonQueryAsync(StoredProcedureNames.UpdateDocumentStatus, queryParameters, true);
        }
        public async Task UpdateDocumentStatus(long physicalDocumentId, PhysicalDocumentStatus physicalDocumentStatus)
        {
            if (physicalDocumentId <= 0)
            {
                throw new AtlasBusinessException("Invalid physical document ID.");
            }

            await _documentRepository.UpdateDocumentStatus(physicalDocumentId, physicalDocumentStatus);
        }