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

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

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