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