示例#1
0
        public ActionResult TransactionHistory()
        {
            if (Session[DALVariables.UserAccountId] == null)
            {
                return(RedirectToAction("Login", "User"));
            }

            if (!String.IsNullOrEmpty("Search Area"))
            {
                try
                {
                    List <ModelTransactionByCreditCard> lstModelTransactionByCreditCard = new List <ModelTransactionByCreditCard>();

                    BLLMerchantPages objBLLMerchantPages = new BLLMerchantPages();
                    lstModelTransactionByCreditCard = objBLLMerchantPages.GetPaymeantTransactionHistory(Convert.ToInt32(Session[DALVariables.UserAccountId].ToString()));
                    if (lstModelTransactionByCreditCard.Count > 0)
                    {
                        return(View(lstModelTransactionByCreditCard));
                    }
                    else
                    {
                        return(View(lstModelTransactionByCreditCard));
                    }
                }
                catch (Exception ex)
                {
                    DALUtility.ErrorLog(ex.Message, "SubscribeService, Merchant");
                }
            }
            else
            {
                Error(string.Format("Error occured while updating service status."));
            }
            return(RedirectToAction("Login", "User"));
        }
 // GET: /PaymentServiceList/
 public PartialViewResult MerchantResponseURL()
 {
     try
     {
         ModelLandingURL objModelLandingURL = new ModelLandingURL();
         objBLLMerchantPages = new BLLMerchantPages();
         objModelLandingURL  = objBLLMerchantPages.GetMerchantResponseURL(Convert.ToDecimal(Session[DALVariables.UserAccountId]));
         return(PartialView(customview("_MerchantResponseURL", "User"), objModelLandingURL));
     }
     catch (Exception ex)
     {
         DALUtility.ErrorLog(ex.Message, "MerchantResponseURL, DashBoardMerchant");
     }
     return(PartialView());
 }
示例#3
0
        //
        // GET: /User/Home

        public ActionResult Home()
        {
            if (Session[DALVariables.UserAccountId] == null)
            {
                return(RedirectToAction("Login", "User"));
            }
            objBLLMerchantPages       = new BLLMerchantPages();
            objModelSchoolUserAccount = new ModelSchoolUserAccount();
            DataTable merchantData = new DataTable();

            merchantData = objBLLMerchantPages.GetMerchantAPIKey(Convert.ToDecimal(Session[DALVariables.UserAccountId]));
            if (merchantData.Rows.Count > 0)
            {
                //objModelSchoolUserAccount.MerchantKey = merchantData.Rows[0]["MerchantKey"].ToString();
                //objModelSchoolUserAccount.MerchantReferenceID = merchantData.Rows[0]["MerchantReferenceID"].ToString();
            }
            return(View(objModelSchoolUserAccount));
        }