public void GetTest()
        {
            GetFlightListCommand command = CommandFactory.getListFlightCommand();

            command.Execute();
            Assert.NotNull(command.GetResult());
        }
        public ActionResult <IEnumerable <Entity> > Get()
        {
            try
            {
                GetFlightListCommand command = CommandFactory.getListFlightCommand();
                command.Execute();

                //var result = FlightRepository.Get();
                return(Ok(command.GetResult()));
            }
            catch (DbErrorException ex)
            {
                return(BadRequest(ex.Message));
            }
            catch (Exception)
            {
                return(null);
            }
        }