Example #1
0
 /// <summary>
 /// 根据时间范围查询秒杀场次信息
 /// </summary>
 /// <param name="activityType"></param>
 /// <param name="startDate"></param>
 /// <param name="endDate"></param>
 /// <returns></returns>
 public async Task <OperationResult <IEnumerable <FlashSaleModel> > > GetSecondsBoysAsync(int activityType, DateTime?startDate = null, DateTime?endDate = null)
 {
     if (startDate == null || endDate == null)
     {
         return(OperationResult.FromError <IEnumerable <FlashSaleModel> >("-1", "参数错误"));
     }
     else
     {
         return(OperationResult.FromResult(await FlashSaleManager.GetSecondsBoysAsync(activityType, startDate, endDate)));
     }
 }