public string ActualizarPais(string nombre, int id) { try { PAIS pais = new PAIS(); PaisDAL paisDAL = new PaisDAL(); if (nombre.Trim().Length > 1) { if (id > 0) { pais.ID = id; pais.FECHA_ULTIMO_UPDATE = DateTime.Now; pais.NOMBRE = nombre; return(paisDAL.ActualizarPais(pais)); } else { return("Seleccione un registro de la tabla"); } } else { return("El nombre debe tener al menos 2 caracteres"); } } catch (Exception ex) { throw ex; } }