public ActionResult NewFile() { var configFile = new ConfigFile(); var academieJaar = configFile.AcademieJaar(); if (!_studentFacade.SyncStudentPartims(User.Identity.Name, academieJaar)) { return(RedirectToAction("Index")); } var education = _studentFacade.GetEducation(User.Identity.Name); var dossier = new ServiceLayer.Student.Models.File { StudentMail = User.Identity.Name, DateCreated = DateTime.Now, Education = education, AcademicYear = academieJaar }; var newId = _studentFacade.InsertFile(dossier); return(RedirectToAction("Index")); }