private Board GetBoardForProject(ProjectsConfiguration projectsConfiguration) { var currentProject = projectsConfiguration.Projects[projectsConfiguration.CurrentProjectId]; var currentBoardId = currentProject.Trello.BoardId; return(_trello.Boards.WithId(currentBoardId)); }
public TrelloHelper(Configuration configuration, ProjectsConfiguration projectsConfiguration) { _currentProjectId = projectsConfiguration.CurrentProjectId; _trello = new Trello(configuration.Trello.ApiKey); _trello.Authorize(configuration.Trello.OAuthToken); var boardPlugins = _trello.Advanced.Get($"Boards/ZOUl8taI/boardPlugins").ToString(); _trello.Advanced.Post("Boards/ZOUl8taI/boardPlugins", new { idPlugin = CustomFieldsPluginId }); _currentBoardId = GetBoardForProject(projectsConfiguration); }
protected override void OnModelCreating(ModelBuilder builder) { base.OnModelCreating(builder); CandidatesConfiguration.Configure(builder); CommentsConfiguration.Configure(builder); ContactsConfiguration.Configure(builder); DepartmentsConfiguration.Configure(builder); FileAttachmentsConfiguration.Configure(builder); LanguagesConfiguration.Configure(builder); ProjectsConfiguration.Configure(builder); RelationshipConfiguration.Configure(builder); // UsersConfiguration.Configure(builder); VacanciesConfiguration.Configure(builder); }