public async Task <IActionResult> GetCastById(int id) { var cast = await _castService.GetCastDetailsById(id); if (cast == null) { return(NotFound("Can't find the cast")); } return(Ok(cast)); }