//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")); }
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); }