Ejemplo n.º 1
0
        public string getAirport(int id)
        {
            var airport = _adminBLL.getAirport(id);

            if (airport != null)
            {
                var jsAirport = new jsAirport()
                {
                    id   = airport.Id,
                    name = airport.Name
                };

                var jsonSerializer = new JavaScriptSerializer();
                return(jsonSerializer.Serialize(jsAirport));
            }

            return(null);
        }