public static ExternalUserVM OpvullenVM()
 {
     ExternalUserVM ExtUserVM = new ExternalUserVM();
     ExtUserVM.User = user;
     users = ExternalUserDA.GetUsers();
     ExtUserVM.Users = users;
     return ExtUserVM;
 }
        public ActionResult ExUserToevoegen(ExternalUserVM model)
        {
            if (model.User == null)
                return View(OpvullenVM());

            int affected = ExternalUserDA.InsertExUser(model.User);

            if (affected > 0)
                return View("ExUser", OpvullenVM());
            else
                return View("Error");
        }