Esempio n. 1
0
        public IActionResult GetAllCrews()
        {
            var crews = service.GetAllCrewsInfo();

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

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