Exemplo n.º 1
0
        //Get: Manage/Users -   //Get: Manage/Users/{id}
        public ActionResult Users(string id)
        {
            ViewBag.Gebruikers = Gebruiker.All();
            if (id != null)
            {
                ViewBag.Gebruiker = Gebruiker.Find(id);
            }


            return(View("~/Views/Manage/Users.cshtml"));
        }
Exemplo n.º 2
0
        public static Gebruiker CheckAuth(string email, string password)
        {
            Gebruiker returnUser = null;

            foreach (Gebruiker g in Gebruiker.All())
            {
                if (g.Email == email && g.Wachtwoord == password)
                {
                    returnUser = g;
                }
            }

            return(returnUser);
        }