public ActionResult Search(DegreeType type, string query)
        {
            IEnumerable<IDegree> degrees = _degreeRepository.FindDegrees(type, query);

            return Json(new
                {
                    results = degrees
                });
        }
        public ActionResult Lookup(DegreeType type, string id)
        {
            IDegree degree = _degreeRepository.GetDegree(type, id);
            _degreeRepository.PopulateChildren(degree);

            return Json(new
                {
                    results = degree.Children
                });
        }
        // GET api/search/5
        public IEnumerable<IDegree> Get(DegreeType type, string query)
        {
            IEnumerable<IDegree> degrees = _degreeRepository.FindDegrees(type, query);

            return degrees;
        }