Esempio n. 1
0
        public IActionResult GetAllPlanes()
        {
            var planes = service.GetAllPlanesInfo();

            return(planes == null?NotFound("Hangar is empty!") as IActionResult
                   : Ok(mapper.Map <IEnumerable <PlaneDTO> >(planes)));
        }
Esempio n. 2
0
        public IActionResult GetAllPlanes()
        {
            var planes = service.GetAllPlanesInfo();

            return(planes == null?NotFound("Hangar is empty!") as IActionResult : Ok(planes));
        }