Ejemplo n.º 1
0
        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)));
        }