public ActionResult Search(string term, string searchFieldName, int page = 1)
        {
            var knowledgeAreaRepository = new KnowledgeAreaRepository(_context);

            return(Json(
                       KnowledgeAreaViewModel.FromEntityList(knowledgeAreaRepository.Search(term, searchFieldName, page))));
        }
        // GET: KnowledgeArea
        public ActionResult IndexAdmin(string term, string searchFieldName, int page = 1)
        {
            var knowledgeAreaRepository = new KnowledgeAreaRepository(_context);

            ViewBag.SearchFields = new SelectList(new[] { Resource.KnowledgeAreaNameFieldName, "Id" });
            return(View(
                       KnowledgeAreaViewModel.FromEntityList(knowledgeAreaRepository.Search(term, searchFieldName, page))));
        }