public async Task <IActionResult> ListLotteries(bool active) { ListLotteryResponse response = await _lotteryService.ListLotteryAsync(active); if (response.IsValid()) { return(Ok(response)); } return(BadRequest(response.GetErrors())); }
public async Task <IActionResult> ListLotteries(bool active) { ListLotteryResponse response = await _lotteryService.ListLotteryAsync(active); if (response.IsValid()) { return(Ok(response)); } return(BadRequest(response.GetErrors())); }