public HttpResponseMessage InsertData([FromBody] InsertParamsFileUpload InsertParams)
        {
            ResultMsg             resultMsg = null;
            List <FileUploadInfo> queryFileUploadInfoList = null;
            bool res = true;


            FileUploadInfoQueryHelper tempQueryHelper = new FileUploadInfoQueryHelper();

            tempQueryHelper.Initialize(InsertParams.CompanyCode, InsertParams.DeviceCode);

            res = tempQueryHelper.InsertFileUploadInfo(InsertParams.FileUploadObject);

            if (res == true)
            {
                resultMsg            = new ResultMsg();
                resultMsg.StatusCode = (int)StatusCodeEnum.Success;
                resultMsg.Info       = "";
            }
            else
            {
                resultMsg            = new ResultMsg();
                resultMsg.StatusCode = (int)StatusCodeEnum.InsertRecordError;
                resultMsg.Info       = StatusCodeEnum.InsertRecordError.GetEnumText();;
                resultMsg.Data       = queryFileUploadInfoList;
            }



            return(HttpResponseExtension.toJson(JsonConvert.SerializeObject(resultMsg)));
        }
        public HttpResponseMessage DeleteData([FromBody] QueryConditionBase QueryParams)
        {
            ResultMsg             resultMsg = null;
            List <FileUploadInfo> queryFileUploadInfoList = null;
            bool res = true;


            FileUploadInfoQueryHelper tempQueryHelper = new FileUploadInfoQueryHelper();

            tempQueryHelper.Initialize(QueryParams.CompanyCode, QueryParams.DeviceCode);

            queryFileUploadInfoList = tempQueryHelper.QueryFileUploadInfo(QueryParams);



            resultMsg            = new ResultMsg();
            resultMsg.StatusCode = (int)StatusCodeEnum.Success;
            resultMsg.Info       = "";
            resultMsg.Data       = queryFileUploadInfoList;

            return(HttpResponseExtension.toJson(JsonConvert.SerializeObject(resultMsg)));
        }