/// <summary>
 /// Nieuwe gebruiker aan maken
 /// </summary>
 /// <param name="rol"></param>
 public void Nieuw(SysteemRol rol)
 {
     PropertyBag.Add("item", new Gebruiker(rol));
     RenderView("edit");
     CancelLayout();
 }
 /// <summary>
 /// Geeft een lijst terug met gebruikers aan de hand van de systeem rol
 /// </summary>
 /// <param name="rol"></param>
 public void ListGebruikers(SysteemRol rol)
 {
     PropertyBag.Add("gebruikers", GebruikerRepository.ZoekOpSysteemRol(rol));
     CancelLayout();
 }
Example #3
0
 public static Gebruiker Gebruiker(SysteemRol rol)
 {
     return new Gebruiker(rol);
 }
Example #4
0
 public static Gebruiker Gebruiker(string gebruikersNaam, SysteemRol systeemRol)
 {
     return Persist(new Gebruiker(gebruikersNaam, systeemRol));
 }
Example #5
0
 /// <summary>
 /// Nieuwe gebruiker met naam en rol.
 /// </summary>
 /// <param name="naam"></param>
 /// <param name="systeemRol"></param>
 public Gebruiker(string naam, SysteemRol systeemRol)
 {
     this.naam = naam;
     this.systeemRol = systeemRol;
 }
Example #6
0
 /// <summary>
 /// Nieuwe gebruiker aan de hand van de systeem rol
 /// </summary>
 /// <param name="rol">De rol.</param>
 public Gebruiker(SysteemRol rol)
 {
     systeemRol = rol;
 }
Example #7
0
 /// <summary>
 /// Heeft de gebruiker deze rol?
 /// </summary>
 /// <param name="rol">De rol.</param>
 /// <returns>
 /// 	<c>true</c> if [is in role] [the specified role]; otherwise, <c>false</c>.
 /// </returns>
 public bool IsInRole(SysteemRol rol)
 {
     return rol == systeemRol;
 }