示例#1
0
 public Entidad.Insertar_Usuario_Result InsertarUsuario(string nombre, int idrol, string user, string pass, string activo)
 {
     try
     {
         Datos.usuariosData dc = new Datos.usuariosData();
         //activo = "1";
         return dc.InsertUser(nombre,idrol,user,pass,activo);
     }
     catch (Exception err)
     {
         throw new Exception(err.Message);
     }
 }
示例#2
0
 public bool VerificarUsuario(string user)
 {
     bool existe = false;
     try
     {
         Datos.usuariosData dc = new Datos.usuariosData();
         bool resp = dc.GetUser(user);
         if (resp == true)
             existe = true;
     }
     catch (Exception err)
     {
         throw new Exception(err.Message);
     }
     return existe;
 }