public async Task <StatusCode> Update(PassengerSeat entity)
        {
            var seat = await PassengerSeat.GetById(entity.Id);

            if (seat != null)
            {
                Validation(entity);
                await PassengerSeat.Update(entity.ToEntity());

                return(StatusCode.Updated);
            }
            return(StatusCode.DoesNotExist);
        }
        public async Task <StatusCode> Create(PassengerSeat entity)
        {
            Validation(entity);
            var passengerSeats = await PassengerSeat.GetById(entity.Id);

            var isExist = passengerSeats != null;

            if (isExist)
            {
                return(StatusCode.AlreadyExists);
            }

            await PassengerSeat.Create(entity.ToEntity());

            return(StatusCode.Created);
        }