예제 #1
0
        private BackendMenuGroupViewModel GetBackendMenuGroup(List <BackendMenuGroupViewModel> backendMenuGroupViewModels, Platformus.Infrastructure.BackendMenuGroup backendMenuGroup)
        {
            BackendMenuGroupViewModel backendMenuGroupViewModel = backendMenuGroupViewModels.FirstOrDefault(bmg => bmg.Name == backendMenuGroup.Name);

            if (backendMenuGroupViewModel == null)
            {
                backendMenuGroupViewModel = new BackendMenuGroupViewModelBuilder(this.handler).Build(backendMenuGroup);
                backendMenuGroupViewModels.Add(backendMenuGroupViewModel);
            }

            return(backendMenuGroupViewModel);
        }
        private BackendMenuGroupViewModel GetBackendMenuGroup(List<BackendMenuGroupViewModel> backendMenuGroupViewModels, Platformus.Infrastructure.BackendMenuGroup backendMenuGroup)
        {
            BackendMenuGroupViewModel backendMenuGroupViewModel = backendMenuGroupViewModels.FirstOrDefault(bmg => bmg.Name == backendMenuGroup.Name);

              if (backendMenuGroupViewModel == null)
              {
            backendMenuGroupViewModel = new BackendMenuGroupViewModelBuilder(this.handler).Build(backendMenuGroup);
            backendMenuGroupViewModels.Add(backendMenuGroupViewModel);
              }

              return backendMenuGroupViewModel;
        }