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);
     }
 }
Esempio 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);
     }
 }
 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);
     }
 }