/// <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(); }
public static Gebruiker Gebruiker(SysteemRol rol) { return new Gebruiker(rol); }
public static Gebruiker Gebruiker(string gebruikersNaam, SysteemRol systeemRol) { return Persist(new Gebruiker(gebruikersNaam, systeemRol)); }
/// <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; }
/// <summary> /// Nieuwe gebruiker aan de hand van de systeem rol /// </summary> /// <param name="rol">De rol.</param> public Gebruiker(SysteemRol rol) { systeemRol = rol; }
/// <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; }