Exemplo n.º 1
0
 public Usuario Select(string UserID, string Password)
 {
     UsuarioPL pl = null;
     try
     {
         pl = new UsuarioPL();
         this.Instance =
             pl.SP_VALIDA_USUARIO(UserID, Password);
     }
     catch (Exception ex)
     {
         throw ex;
     }
     return new Usuario();
 }
Exemplo n.º 2
0
 public Usuario Select(string UserID)
 {
     UsuarioPL pl = null;
     try
     {
         pl = new UsuarioPL();
         this.Instance =
             pl.SP_SELECIONAR_USUARIO(UserID.ToString(), int.MinValue);
     }
     catch (Exception ex)
     {
         throw ex;
     }
     return new Usuario();
 }
Exemplo n.º 3
0
 public Usuario Select(int CodigoCliente)
 {
     UsuarioPL pl = null;
     try
     {
         pl = new UsuarioPL();
         this.Instance =
             pl.SP_SELECIONAR_USUARIO(null, CodigoCliente);
     }
     catch (Exception ex)
     {
         throw ex;
     }
     return new Usuario();
 }