コード例 #1
0
        public ActionResult <ApplicationCore.Entities.Roulette> UpdateRoulette(int id, [FromBody] ApplicationCore.Entities.Roulette roulette)
        {
            var res = _service.UpdateRouletteAsync(id, roulette);

            if (res.Result.Status == false)
            {
                var result = _service2.GetBets(res.Result.IdRoulette);
                res.Result.bet = result;
            }
            return(res.Result);
        }
コード例 #2
0
        public ActionResult <ApplicationCore.Entities.Roulette> CreateRoulette([FromBody] ApplicationCore.Entities.Roulette roulette)
        {
            var res = _service.CreateRouletteAsync(roulette);

            return(res.Result);
        }