Example #1
0
        public IActionResult GetAllStewardesses()
        {
            var stewardesses = service.GetAllStewardessesInfo();

            return(stewardesses == null?NotFound("No stewardesses found!") as IActionResult
                   : Ok(mapper.Map <IEnumerable <StewardessDTO> >(stewardesses)));
        }
Example #2
0
        public IActionResult GetAllStewardesses()
        {
            var stewardesses = service.GetAllStewardessesInfo();

            return(stewardesses == null?NotFound("No stewardesses found!") as IActionResult : Ok(stewardesses));
        }