public ActionResult _SearchGroups(SearchGroupsModel sgm)
 {
     if (ModelState.IsValid)
     {
         //Changed to gr1 due to Static Analysis
         GroupRepository gr1 = new GroupRepository();
         sgm.Groups = gr1.SearchOnTerm(sgm.SearchTerm).ToList();
         return PartialView("_SearchGroups", sgm);
     }
     return PartialView("_SearchGroups", sgm);
 }
 public ActionResult _SearchGroups()
 {
     SearchGroupsModel sgm = new SearchGroupsModel();
     sgm.SearchTerm = "";
     return PartialView(sgm);
 }