/// <summary>
        /// 业务员 取消合同单
        /// </summary>
        /// <param name="apiContractOrderModel"></param>
        /// <returns></returns>
        public ApiReturnModel CancelContractOrder([FromBody] ApiContractOrderModel apiContractOrderModel)
        {
            var userInfo = GetCurrentUserInfo();

            var BReturnModel = contractOrderBusiness.UpdateContractOrderFlag(apiContractOrderModel.Id, userInfo.Id, apiContractOrderModel.Remarks, BusinessOrderFlag.Invalid);

            if (BReturnModel.IsOk == BReturnModel.Code)
            {
                return(ApiReturnModel.ReturnOk());
            }
            return(ApiReturnModel.ReturnError(BReturnModel.Msg));
        }
        /// <summary>
        /// 业务员 提交合同订单
        /// </summary>
        /// <param name="apiContractOrderModel"></param>
        /// <returns></returns>
        public ApiReturnModel UploadContractOrder([FromBody] ApiContractOrderModel apiContractOrderModel)
        {
            var userInfo = GetCurrentUserInfo();

            IList <BProductDetailModel> bProductDetailModelList = new List <BProductDetailModel>();

            foreach (var item in apiContractOrderModel.apiOrderProductModel)
            {
                var productModel = ApiToBusinessModelMapping.GetBProductDetailModelByApiUserProductModel(item);
                bProductDetailModelList.Add(productModel);
            }

            var BReturnModel = contractOrderBusiness.AddContractOrder(apiContractOrderModel.OrderId, userInfo.Id, apiContractOrderModel.ExpireTime, bProductDetailModelList);

            if (BReturnModel.Code == BReturnModel.IsOk)
            {
                return(ApiReturnModel.ReturnOk());
            }

            else
            {
                return(ApiReturnModel.ReturnError(BReturnModel.Msg));
            }
        }