@Override // @ApiMethod(name = "contractor.delete", httpMethod = "post") public List<ContractorInfo> deleteContractor(AgentInfo agentInfo, ContractorInfo contractorInfo) throws IllegalArgumentException { ObjectifyService.begin(); return contractorManager.deleteContractor(agentInfo, contractorInfo); }
@Override // @ApiMethod(name = "contractor.save", httpMethod = "post") public List<ContractorInfo> saveContractor( AgentInfo agentInfo, ContractorInfo contractorInfo, @Named("mode") ContractorInfo.SaveMode mode) throws IllegalArgumentException { ObjectifyService.begin(); return contractorManager.saveContractor(agentInfo, contractorInfo, mode); }