Exemplo n.º 1
0
        public RolesVM()
        {
            Roles   = new ObservableCollection <Role>(RoleQueries.GetRoles());
            NewRole = new Role();

            newRoleCommand  = new NuevoRoleCommand(this);
            editRoleCommand = new EditRoleCommand(this);
        }
Exemplo n.º 2
0
 public PermisoVM()
 {
     Roles       = new ObservableCollection <Role>(RoleQueries.GetRoles());
     Permissions = new ObservableCollection <SubMenuPermission>();
     SelectedRol = new Role();
 }