public static async Task <OperationResult <SalePromotionActivityModel> > GetActivityAndProductsAsync(string activityId, List <string> pidList)
        {
            var model = await DalSalePromotionActivity.GetActivityInfoAsync(activityId);

            if (model != null)
            {
                model.Products = (await DalSalePromotionActivity.GetProductInfoListAsync(activityId, pidList))?.ToList();
            }
            return(OperationResult.FromResult(model));
        }
 public static async Task <OperationResult <IEnumerable <SalePromotionActivityProduct> > > GetProductInfoListAsync(string activityId, List <string> pidList)
 {
     return(await OperationResult.FromResultAsync(DalSalePromotionActivity.GetProductInfoListAsync(activityId, pidList)));
 }