public async Task <List <Prize> > SetMultiPrizeWinner(LuckyDrawState luckyDrawState) { for (int i = 0; i < luckyDrawState.result.Winners.Count; i++) { await LuckyDrawService.SetPrizeWinner(luckyDrawState.result.Prizes[i].PrizeID, luckyDrawState.result.Winners[i].WWID); } var nextPrize = await LuckyDrawService.GetNextPrizeAsync(10); return(nextPrize); }
public async Task <Prize> SetSinglePrizeWinner(LuckyDrawState luckyDrawState) { await LuckyDrawService.SetPrizeWinner(luckyDrawState.result.Prize.PrizeID, luckyDrawState.result.Winner.WWID); await LuckyDrawService.SetPrizeCollected(luckyDrawState.result.Prize.PrizeID); var nextPrize = await LuckyDrawService.GetNextPrizeAsync(); return(nextPrize); }