コード例 #1
0
        /// <summary>
        /// 根据OrderId查询团信息
        /// </summary>
        /// <param name="OrderId"></param>
        /// <returns></returns>
        public async Task <OperationResult <GroupInfoModel> > FetchGroupInfoByOrderIdAsync(int OrderId)
        {
            if (OrderId < 1)
            {
                return(OperationResult.FromError <GroupInfoModel>(ErrorCode.ParameterError, "参数不正确"));
            }

            var result = await GroupBuyingManager.FetchGroupInfoByOrderId(OrderId);

            return(OperationResult.FromResult(result));
        }