public ActionResult Reserve([FromRoute] int flightId, [FromBody] List <ViewModel.ReseveFlightVM> model)
        {
            ResponseModel <int> result = new ResponseModel <int>();

            try
            {
                int           userId = _userRepo.GetCurrentUserId();
                Models.Flight flight = _flightRepo.GetFlightById(flightId);
                if (flight == null)
                {
                    result.SetError("پرواز یافت نشد");
                    return(Ok(result));
                }

                var reserveId = _flightRepo.ReserveFlight(userId, flightId, model);
                result.Data = reserveId;
                return(Ok(result));
            }
            catch (System.Exception ex)
            {
                return(StatusCode(500));
            }
        }