Exemple #1
0
        /// <summary>
        /// 根据ProductGroupId查询产品组详情
        /// </summary>
        /// <param name="ProductGroupId"></param>
        /// <returns></returns>
        public async Task <OperationResult <ProductGroupModel> > FetchProductGroupInfoByIdAsync(string ProductGroupId)
        {
            if (string.IsNullOrWhiteSpace(ProductGroupId))
            {
                return(OperationResult.FromError <ProductGroupModel>(ErrorCode.ParameterError, "参数不正确"));
            }

            var result = await GroupBuyingManager.FetchProductGroupInfoById(ProductGroupId);

            return(OperationResult.FromResult(result));
        }