public IActionResult GetAllStewardesses() { var stewardesses = service.GetAllStewardessesInfo(); return(stewardesses == null?NotFound("No stewardesses found!") as IActionResult : Ok(mapper.Map <IEnumerable <StewardessDTO> >(stewardesses))); }
public IActionResult GetAllStewardesses() { var stewardesses = service.GetAllStewardessesInfo(); return(stewardesses == null?NotFound("No stewardesses found!") as IActionResult : Ok(stewardesses)); }