Ejemplo n.º 1
0
 private static Usuario GetUsuarioByUserName(string username)
 {
     try
     {
         using (var objDal = new BaseDAL_II())
         {
             return(objDal.consultarPorKey <Usuario>("Nickname", username));
         }
     }
     catch (Exception ex)
     {
         throw new Exception("Error:  " + ex.Message);
     }
 }
Ejemplo n.º 2
0
 public static AplicationForm GetAplicationByKey(string key)
 {
     try
     {
         using (var objDal = new BaseDAL_II())
         {
             return(objDal.consultarPorKey <AplicationForm>("AplicationFormkey", key));
         }
     }
     catch (Exception ex)
     {
         throw new Exception("Error:  " + ex.Message);
     }
 }
Ejemplo n.º 3
0
 public static Usuario GetUsuarioByKey(string key)
 {
     try
     {
         using (var objDal = new BaseDAL_II())
         {
             return(objDal.consultarPorKey <Usuario>("UsuarioKey", key));
         }
     }
     catch (Exception ex)
     {
         throw new Exception("Error:  " + ex.Message);
     }
 }