public async Task <IActionResult> Put(string projectId, string branchName, [FromBody] BranchDto branch) { var authorization = await _authorizationService.AuthorizeAsync(User, new ProjectDto { Id = projectId }, Operations.Update); if (!authorization.Succeeded) { return(Forbid()); } await _branchesService.UpdateBranchAsync(projectId, branchName, branch); return(Ok()); }
public async Task <IActionResult> Put(string projectId, string branchName, [FromBody] BranchDto branch) { await _branchesService.UpdateBranchAsync(projectId, branchName, branch); return(Ok()); }