Beispiel #1
0
        public ActionResult Aanpassen(ItOrganisation org)
        {
            if (!ModelState.IsValid)
            {
                return(View("Aanpassen", org));
            }
            int getal = VerenigingDA.UpdateVereniging(org);

            return(RedirectToAction("index"));
        }
Beispiel #2
0
        public ActionResult Nieuw(ItOrganisation org)
        {
            if (!ModelState.IsValid)
            {
                return(View("Nieuw", org));
            }
            org.DbLogin = Cryptography.Encrypt(org.DbLogin);
            org.DbName  = Cryptography.Encrypt(org.DbName);
            org.DBpass  = Cryptography.Encrypt(org.DBpass);
            org.Login   = Cryptography.Encrypt(org.Login);
            org.Pass    = Cryptography.Encrypt(org.Pass);
            int            id        = VerenigingDA.NieuweVerenigingToevoegen(org);
            ItOrganisation organisat = VerenigingDA.getVereniging(id);

            OrganisatieCreateDatabase.CreateDatabase(organisat);
            return(RedirectToAction("index"));
        }
Beispiel #3
0
 // GET: Verenigingen
 public ActionResult Index()
 {
     organisatie = VerenigingDA.getVerenigingen();
     return(View(organisatie));
 }