示例#1
0
        public async Task <IActionResult> SaveRoulette([FromBody] Roulette.Entities.Roulette roulette)
        {
            try
            {
                var result = await _rouletteService.SaveRoulette(roulette);

                if (result != 0)
                {
                    return(Ok(result));
                }
                return(BadRequest(ResponseMessages[ResponseCode.ErrorSave]));
            }
            catch (Exception ex)
            {
                return(BadRequest(ResponseMessages[ResponseCode.InternalError]));
            }
        }