public tbTipoClientes guardar(tbTipoClientes tipo) { tbTipoClientes tipoCliente = tipoInst.GetEntity(tipo); if (tipoCliente == null) { return(tipoInst.Guardar(tipo)); } else { if (tipoCliente.estado == true) { throw new EntityExistException("tipo Cliente"); } else { throw new EntityDisableStateException("Tipo Cliente"); } } }