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