コード例 #1
0
 /// <summary>
 /// 活动页秒杀查询最新有效场次
 /// </summary>
 /// <param name="topNumber">场次返回条数</param>
 /// <param name="isProducts">是否查询活动下的产品信息,默认为true</param>
 /// <returns></returns>
 public async Task <OperationResult <IEnumerable <FlashSaleModel> > > GetActivePageSecondKillAsync(int topNumber, bool isProducts = true)
 {
     if (topNumber <= 0)
     {
         return(OperationResult.FromError <IEnumerable <FlashSaleModel> >("-1", "topNumber必须大于0"));
     }
     else
     {
         return(OperationResult.FromResult(await FlashSaleManager.GetActivePageSecondKillManager(topNumber, isProducts)));
     }
 }