Exemplo n.º 1
0
        public IActionResult Get()
        {
            var command = new GetTeamsCommand(this.dapperClient);
            var result  = command.Execute();

            return(new JsonResult(result));
        }
Exemplo n.º 2
0
        private void RaiseTeamChanged(Team team)
        {
            Int64 startTicks = Log.EVENT_HANDLER("Enter", Common.LOG_CATEGORY);

            GetTeamsCommand.RaiseCanExecuteChanged();
            GetDashboardsCommand.RaiseCanExecuteChanged();
            GetWidgetsCommand.RaiseCanExecuteChanged();

            // Work Item Tracking

            GetTemplatesCommand.RaiseCanExecuteChanged();

            Log.EVENT_HANDLER("Exit", Common.LOG_CATEGORY, startTicks);
        }
Exemplo n.º 3
0
        // NOTE(crhodes)
        // RaiseCanExecuteChanged for any Command that is dependent on Context.
        // N.B. Need to add to each Context Item for button to be enabled.

        //++ Add Commands that only depend on Organization Context here

        private void RaiseCollectionChanged(SelectedCollectionChangedEventArgs args)
        {
            Int64 startTicks = Log.EVENT_HANDLER($"Enter: ({args.GetType()}) {args.Collection.Name}", Common.LOG_CATEGORY);

            GetCoreProcessesCommand.RaiseCanExecuteChanged();
            GetProjectsCommand.RaiseCanExecuteChanged();
            GetTeamsCommand.RaiseCanExecuteChanged();

            // Accounts

            GetAccountsCommand.RaiseCanExecuteChanged();

            // Approvals and Checks

            // Artifacts

            // Artifacts Package Types

            // Audit

            // Build

            GetControllersCommand.RaiseCanExecuteChanged();

            // Cloud Load Test

            // Dashboard

            GetDashboardsCommand.RaiseCanExecuteChanged();
            GetWidgetsCommand.RaiseCanExecuteChanged();

            // TODO(crhodes)
            // Move these under appropriate Category

            GetWidgetsCommand.RaiseCanExecuteChanged();

            GetSystemControlsCommand.RaiseCanExecuteChanged();
            GetRulesCommand.RaiseCanExecuteChanged();

            // Git

            GetRepositoriesCommand.RaiseCanExecuteChanged();

            // Graph

            GetGroupsCommand.RaiseCanExecuteChanged();
            GetUsersCommand.RaiseCanExecuteChanged();

            // Work Item Tracking (WIT)

            GetArtifactLinkTypesCommand.RaiseCanExecuteChanged();
            GetOrganizationFieldsWITCommand.RaiseCanExecuteChanged();
            GetWorkItemIconsCommand.RaiseCanExecuteChanged();
            GetWorkItemRelationTypesCommand.RaiseCanExecuteChanged();

            // Work Item Tracking Process (WITP)

            // TODO(crhodes)
            // Decide if want to have a naming convention
            // VERBAreaResource
            // e.g. GetWITPBehaviorsCommand
            // GetWITPListsCommand
            // Get WITPProcessesCommand

            GetBehaviorsWITPCommand.RaiseCanExecuteChanged();
            GetListsCommand.RaiseCanExecuteChanged();
            GetProcessesWITPCommand.RaiseCanExecuteChanged();

            Log.EVENT_HANDLER("Exit", Common.LOG_CATEGORY, startTicks);
        }