Esempio n. 1
0
        /// <summary>
        /// 用户取消订单
        /// </summary>
        /// <param name="GroupId"></param>
        /// <param name="OrderId"></param>
        /// <returns></returns>
        public async Task <OperationResult <VerificationResultModel> > CancelGroupBuyingOrderAsync(Guid GroupId,
                                                                                                   int OrderId)
        {
            if (GroupId == Guid.Empty || OrderId < 1)
            {
                return(OperationResult.FromError <VerificationResultModel>(ErrorCode.ParameterError, "参数不正确"));
            }

            var result = await GroupBuyingManager.CancelGroupBuyingOrder(GroupId, OrderId, Guid.Empty);

            return(OperationResult.FromResult(result));
        }