//[Authorize]
 public ActionResult Index(DateTime vanaf)
 {
         AfspraakPM apm = new AfspraakPM();
         ViewBag.Vanaf = vanaf.ToString("dd-MM-yyyy");
         apm.Afspraken = afs.VanafAfspraken(vanaf);
         return View(apm);
 }
        //[Authorize]
        public ActionResult Index()
        {
            if (TempData["error"] != null)
            {
                ViewBag.Error = TempData["error"];
                TempData["error"] = null;
            }

            AfspraakPM apm = new AfspraakPM();
            apm.Afspraken = afs.GetLopendeAfspraken();
            ViewBag.Vanaf = DateTime.Today.ToString("dd-MM-yyyy");
            return View(apm);
        }