public IActionResult GetAllPlaneTypes() { var planeTypes = service.GetAllPlaneTypesInfo(); return(planeTypes == null?NotFound("There is no information about plane types yet!") as IActionResult : Ok(mapper.Map <IEnumerable <PlaneTypeDTO> >(planeTypes))); }
public IActionResult GetAllPlaneTypes() { var planeTypes = service.GetAllPlaneTypesInfo(); return(planeTypes == null?NotFound("There is no information about plane types yet!") as IActionResult : Ok(planeTypes)); }