class MbcAgendaAnestesiaON extends BaseBusiness {

	public void validarAnestesiaAdicionadaExistente(List<MbcAgendaAnestesia> listaAgendaAnestesias, MbcAgendaAnestesia agendaAnestesia) throws ApplicationBusinessException {
		for(MbcAgendaAnestesia item : listaAgendaAnestesias) {
			if(agendaAnestesia.getMbcTipoAnestesias().equals(item.getMbcTipoAnestesias())
					&& agendaAnestesia.getMbcAgendas().equals(item.getMbcAgendas())) {
				throw new ApplicationBusinessException(MbcAgendaAnestesiaONExceptionCode.MBC_00824_1);
			}
		}
	}

}