Beispiel #1
0
 public async Task <IResultGenericWrapper <ResultRoulette> > CloseRouletteAsync([FromRoute] string rouletteId)
 {
     try
     {
         return(await _service.CloseRouletteAsync(rouletteId : rouletteId));
     }
     catch (Exception)
     {
         return(new ResultGenericWrapper <ResultRoulette>(error: true, message: "Error"));
     }
 }
Beispiel #2
0
 public async Task <IActionResult> CloseRoulettaAsync(string rouletteCode)
 {
     return(Ok(await _rouletteService.CloseRouletteAsync(rouletteCode)));
 }