예제 #1
0
        public IActionResult GetAllCrews()
        {
            var crews = service.GetAllCrewsInfo();

            return(crews == null?NotFound("No crews found!") as IActionResult
                   : Ok(mapper.Map <IEnumerable <CrewDTO> >(crews)));
        }
예제 #2
0
        public IActionResult GetAllCrews()
        {
            var crews = service.GetAllCrewsInfo();

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