Example #1
0
 public static Vefification VerifyGiftCard(string giftcardCode, string pinCode, AspxCommonInfo aspxCommonObj)
 {
     try
     {
         Vefification objVerify = AspxGiftCardProvider.VerifyGiftCard(giftcardCode, pinCode, aspxCommonObj);
         return(objVerify);
     }
     catch (Exception e)
     {
         throw e;
     }
 }
 public static Vefification VerifyGiftCard(string giftcardCode, string pinCode, AspxCommonInfo aspxCommonObj)
 {
     try
     {
         List <KeyValuePair <string, object> > parameter = CommonParmBuilder.GetParamSP(aspxCommonObj);
         parameter.Add(new KeyValuePair <string, object>("@GiftCardCode", giftcardCode));
         parameter.Add(new KeyValuePair <string, object>("@GiftCardPinCode", Encrypt(pinCode)));
         SQLHandler   sqlH      = new SQLHandler();
         Vefification objVerify = sqlH.ExecuteAsObject <Vefification>("usp_Aspx_VerifyGiftCard", parameter);
         return(objVerify);
     }
     catch (Exception e)
     {
         throw e;
     }
 }