private RequestModifyPermissionsViewModel LoadAdditionalInfoToViewModel( RequestModifyPermissionsViewModel viewModel) { viewModel.Resources = RequestSecurityService.FilterResources(ResourceRepository.GetResources()) .OrderBy(r => r.Name) .ToList(); viewModel.ResourceRights = ResourceRepository.GetResourceRights().OrderBy(r => r.Name).ToList(); viewModel.RequestRightGrantTypes = RequestsRepository.GetRequestRightGrantTypes() .Where(r => r.IdRequestRightGrantType != 3) .OrderBy(r => r.Name).ToList(); return(viewModel); }