Example #1
0
        public IHttpActionResult GetViewForParent(string id)
        {
            Parent parent = parentsService.GetById(id);

            if (parent == null)
            {
                return(NotFound());
            }

            logger.Info("Requesting marks view for parent");

            return(Ok(parentsService.GetAllChildrenMarks(id)));
        }