public IActionResult Index(Cursist cursist)
 {
     ViewBag.Groep = cursist.Groep;
     try
     {
         if (cursist.Groep.GeefGoedgekeurdeMotivatie().BerichtAangemaakt)
         {
             ViewBag.Aankondiging =
                 _berichtRepository.GetBy(cursist.Groep.GeefGoedgekeurdeMotivatie().MotivatieId).Aankondiging;
         }
         return(View("Index"));
     }
     catch (Exception e)
     {
         //ViewBag._userError = e.Message;
         return(View("Index"));
     }
 }