public IActionResult GetAllPlanes() { var planes = service.GetAllPlanesInfo(); return(planes == null?NotFound("Hangar is empty!") as IActionResult : Ok(mapper.Map <IEnumerable <PlaneDTO> >(planes))); }
public IActionResult GetAllPlanes() { var planes = service.GetAllPlanesInfo(); return(planes == null?NotFound("Hangar is empty!") as IActionResult : Ok(planes)); }