class BankBranchService {

	@Transactional
	public List<BankBranch> update(List<BankBranch> bankBranches, BindingResult errors, RequestInfo requestInfo) {

		try {

			bankBranches = fetchRelated(bankBranches);

			validate(bankBranches, Constants.ACTION_UPDATE, errors);

			if (errors.hasErrors()) {
				throw new CustomBindException(errors);
			}

		} catch (CustomBindException e) {

			throw new CustomBindException(errors);
		}

		return bankBranchRepository.update(bankBranches, requestInfo);

	}

}