public string EndSegmentUpload(string attachId) { var uploadResult = new ResponseMessage(); try { Uploader uploader = Uploader.GetUploader(attachId); uploadResult = uploader.FinishUpload(); } catch (Exception ex) { uploadResult.errorFlag = "01"; uploadResult.errorMsg = ex.Message; uploadResult.attachId = attachId; Logger.SaveLog(ex.ToString()); } return(uploadResult.ToString()); }