예제 #1
0
        public IActionResult AgregarApuesta(Apuesta objApuesta)
        {
            bool rta = new BLRuleta().CrearApuesta(objApuesta);

            if (!rta)
            {
                return(NotFound("La Ruleta " + objApuesta.IdRuleta.ToString() + " no esta Abierta."));
            }

            return(Ok());
        }
예제 #2
0
        public IActionResult InicarRuleta(int id)
        {
            bool rta = new BLRuleta().IniciarRuleta(id);

            if (!rta)
            {
                return(NotFound("La Ruleta " + id.ToString() + " no existe."));
            }

            return(Ok());
        }
예제 #3
0
        public IActionResult Get(int id)
        {
            Ruleta objRuleta = new BLRuleta().ObtenerRuletaID(id);

            if (objRuleta == null)
            {
                return(NotFound("La Ruleta " + id.ToString() + " no existe."));
            }

            return(Ok(objRuleta));
        }