示例#1
0
        public async Task <IActionResult> Allocate([FromBody] SeatAllocat SeatAllocat)
        {
            try
            {
                if (!ModelState.IsValid)
                {
                    return(BadRequest(ModelState));
                }

                var result = await _seatService.Allocate(SeatAllocat);

                return(StatusCode(result.StatusCode, result));
            }
            catch (Exception ex)
            {
                _logger.LogError(ex.Message);
                throw ex;
            }
        }