class OkrBranchService {

  public void delete(Long id, User user) {
    OkrBranch okrBranch = okrBranchRepository.findByIdOrThrow(id);
    okrBranchRepository.delete(okrBranch);
    logger.info("Deleted OkrBranch with id: " + id);
    activityService.createActivity(user, okrBranch, Action.DELETED);
  }

  @Autowired public  OkrBranchService(
      OkrBranchRepository okrBranchRepository, ActivityService activityService);

}