Esempio n. 1
0
        public async Task <IActionResult> Get([FromRoute] int seatId)
        {
            GetSeatRequest seat;

            try
            {
                seat = await _seatService.GetSeatById(seatId);
            }
            catch (Exception ex)
            {
                return(NotFound(ex));
            }

            return(Ok(seat));
        }