示例#1
0
        public async Task <Guid?> AddDocumentType(DocumentTypeDto request)
        {
            if (string.IsNullOrEmpty(request.DocumentType))
            {
                throw new DocumentTypeNotDefinedException();
            }
            var response = await _repoDocumentType.Insert(_mapper.Map <DocumentTypeEntity>(request)).ConfigureAwait(false);

            return(response.DocumentTypeId);
        }