Example #1
0
        public object Any(ServiceModel.Freight.UploadFile request)
        {
            CommonResponse ecr = new CommonResponse();

            ecr.initial();
            try
            {
                ServiceInterface.Freight.FileService ps = new ServiceInterface.Freight.FileService();
                if (this.Request.Files.Length > 0)
                {
                    request.RequestStream = this.Request.Files[0].InputStream;
                    request.FileName      = this.Request.Files[0].FileName;
                }
                ps.FS_Upload(auth, request, uploadImg_Logic, ecr, this.Request.Headers.GetValues("Signature"), this.Request.RawUrl);
            }
            catch (Exception ex) { cr(ecr, ex); }
            return(ecr);
        }
Example #2
0
 public object Any(ServiceModel.Freight.UploadFile request)
 {
     CommonResponse ecr = new CommonResponse();
                                         ecr.initial();
                                         try
                                         {
                                                         ServiceInterface.Freight.FileService ps = new ServiceInterface.Freight.FileService();
                                                         if (this.Request.Files.Length > 0)
                                                         {
                                                                         request.RequestStream = this.Request.Files[0].InputStream;
                                                                         request.FileName = this.Request.Files[0].FileName;
                                                         }
                                                         ps.FS_Upload(auth, request, uploadImg_Logic, ecr, this.Request.Headers.GetValues("Signature"), this.Request.RawUrl);
                                         }
                                         catch (Exception ex) { cr(ecr, ex); }
                                         return ecr;
 }