コード例 #1
0
 /// <summary>
 ///     Constructs the permissions view model
 /// </summary>
 /// <param name="optionService"></param>
 public PermissionsViewModel(OptionService optionService)
 {
     if (optionService == null)
     {
         throw new ArgumentNullException("optionService");
     }
     this.PermissionSortOrder = 0;
     this.RoleSortOrder       = 0;
     this.UserNameSortOrder   = 0;
     this.UserRoleSortOrder   = 0;
     OptionService            = optionService;
     UserRoleList             = OptionService.RetrieveUserRoleList();
     PermissionRoleList       = OptionService.RetrieveRolePermissionList();
 }