public ActionResult CreateRoulette()
 {
     try
     {
         return(Ok(rouletteService.CreateRoulette()));
     }
     catch (Exception ex)
     {
         return(StatusCode(500, ex.Message));
     }
 }
        public async Task <IActionResult> CreateRoulette()
        {
            try
            {
                CustomResponse <string> response = await _rouletteService.CreateRoulette();

                return(Ok(response));
            }
            catch (MessageException exception)
            {
                return(Problem(
                           detail: exception.Message,
                           title: exception.StatusName));
            }
        }
        public ActionResult <Guid> CreateRoulette()
        {
            var newRoulette = _rouletteService.CreateRoulette();

            return(Ok(newRoulette));
        }
Example #4
0
 public int CreateRoulette([FromBody] string value)
 {
     return(RouletteService.CreateRoulette());
 }