public ApiReturnModel CancelIntentionOrder([FromBody] ApiIntentionOrderModel apiIntentionOrderModel) { var userInfo = GetCurrentUserInfo(); var msg = intentionOrderBusiness.UpdateIntentionOrderFlag(apiIntentionOrderModel.Id, userInfo.Id, apiIntentionOrderModel.ReceiveRemarks, BusinessOrderFlag.Invalid, true); if (msg == BReturnModel.IsOk) { return(ApiReturnModel.ReturnOk()); } else { return(ApiReturnModel.ReturnError(msg)); } }
public ApiReturnModel UploadIntentionOrder([FromBody] ApiIntentionOrderModel apiIntentionOrderModel) { var userInfo = GetCurrentUserInfo(); IList <BProductDetailModel> bProductDetailModelList = new List <BProductDetailModel>(); foreach (var item in apiIntentionOrderModel.apiOrderProductModel) { var productModel = ApiToBusinessModelMapping.GetBProductDetailModelByApiUserProductModel(item); bProductDetailModelList.Add(productModel); } var msg = intentionOrderBusiness.AddIntentionOrder(apiIntentionOrderModel.OrderId, userInfo.Id, apiIntentionOrderModel.Remarks, bProductDetailModelList); if (msg == BReturnModel.IsOk) { return(ApiReturnModel.ReturnOk()); } else { return(ApiReturnModel.ReturnError(msg)); } }