コード例 #1
0
        public async Task <IActionResult> ConfirmUploadAsync(CancellationToken cancellationToken)
        {
            InitUserInfo();
            if (!AllowUpload)
            {
                return(ValidationProblem());
            }
            var result = await _purchaseOrderDetailService.CommitUploadedFile(cancellationToken);

            if (!result)
            {
                AssignToModelState(_purchaseOrderDetailService.Errors);
                return(ValidationProblem());
            }

            return(Ok());
        }