Exemple #1
0
        public IActionResult BeginSelect([FromForm] long sessionId)
        {
            if (sessionId <= 0)
            {
                return(Fail("请选择正确的场次"));
            }

            ApiResult <bool> result = _sessionService.BeginSelectSeat(sessionId);

            if (result.Status != ResultStatus.SUCCESS || !result.Result)
            {
                return(Fail(result.Message));
            }

            return(Ok());
        }