public StandardEditViewModel(ISpecificationService specificationService) { _specificationService = specificationService; ConsolidateCommand = new DelegateCommand( () => { Views.ConsolidateStandardDialog consolidateDialog = new Views.ConsolidateStandardDialog(); consolidateDialog.StandardInstance = _standardInstance; consolidateDialog.ShowDialog(); }, () => Thread.CurrentPrincipal.IsInRole(UserRoleNames.SpecificationAdmin)); DeleteCommand = new DelegateCommand( () => { _specificationService.DeleteStandard(_standardInstance); }, () => Thread.CurrentPrincipal.IsInRole(UserRoleNames.SpecificationAdmin)); }