Exemple #1
0
        public void AutoApproveDocument(string documentId)
        {
            var document = _documentService.GetDocument(documentId);

            var approval = new Approval
            {
                ApprovedBy   = "auto approval",
                ApprovedDate = DateTime.Now,
                DocumentId   = document.Id,
            };

            _approvalRepository.Create(approval);
        }