public async Task <IActionResult> AddGitRepo([FromBody] dynamic repository) { var newRepo = new GitHubRepo { Id = repository.repository.id, Name = repository.repository.name, Description = repository.repository.description }; bool result = await _service.AddGitRepository(newRepo); return(Ok(result)); }