public IHttpActionResult GetAllParentsKids(string id) { Parent parent = parentsService.GetById(id); if (parent == null) { return(NotFound()); } logger.Info("Requesting students linked to a parent"); return(Ok(parentsService.GetAllParentsKids(id))); }