コード例 #1
0
        public Models.PrintManifestResponse PrintManifest(Models.PrintManifestRequest request)
        {
            Classes.AuthorizationConfig auth = Classes.AuthorizationConfig.Load(request.AuthorizationToken);
            if (auth == null)
            {
                return(new Models.PrintManifestResponse("Authorization failed for token " + request.AuthorizationToken));
            }
            // if there is a specific End-Of-Day/Manifest documentation you can generate the PDF here
            // if you integration doesn't support manifest document or it is not needed simply throw an error via the response of course and state: This integration doesn't support End Of Day manifest documentation.

            return(new Models.PrintManifestResponse()
            {
                PDFbase64 = Convert.ToBase64String(test_resource.MANIFEST)
            });
        }
コード例 #2
0
 public ActionResult PrintManifest(Models.PrintManifestRequest dto)
 {
     return(Result(_userService.PrintManifest(dto)));
 }