// GET: /PaymentServiceList/
 public PartialViewResult PaymentServiceList()
 {
     try
     {
         List <ModelPaymentService> lstModelPaymentService = new List <ModelPaymentService>();
         objBLLPaymentService   = new BLLPaymentService();
         lstModelPaymentService = objBLLPaymentService.MerchantPaymentService(Convert.ToDecimal(Session[DALVariables.UserAccountId]));
         return(PartialView(customview("_PaymentServiceList", "User"), lstModelPaymentService));
     }
     catch (Exception ex)
     {
         DALUtility.ErrorLog(ex.Message, "PaymentServiceList, DashBoardMerchant");
     }
     return(PartialView());
 }
Exemple #2
0
        public ActionResult SubscribeService(string ServiceNo)
        {
            if (Session[DALVariables.UserAccountId] == null)
            {
                return(RedirectToAction("Login", "User"));
            }

            if (!String.IsNullOrEmpty(ServiceNo.Trim()))
            {
                try
                {
                    StringBuilder     st     = new StringBuilder();
                    decimal           result = 0;
                    BLLPaymentService objBLLPaymentService = new BLLPaymentService();
                    result = objBLLPaymentService.UpdateMerchantServiceStatus(Convert.ToInt32(Session[DALVariables.UserAccountId].ToString()), Convert.ToInt32(EncryptDecrypt.Decrypt(ServiceNo.Trim())));
                    if (result > 0)
                    {
                        Success(string.Format("Service status updated successfully"));

                        return(RedirectToAction("Home", "User"));
                    }
                    else if (result == -2)
                    {
                        Error(string.Format("Service status not updated"));

                        return(RedirectToAction("Home", "User"));
                    }
                    else
                    {
                        Error(string.Format("Error occured while updating service status"));
                        return(RedirectToAction("Login", "User"));
                    }
                }
                catch (Exception ex)
                {
                    DALUtility.ErrorLog(ex.Message, "SubscribeService, Merchant");
                }
            }
            else
            {
                Error(string.Format("Error occured while updating service status."));
            }
            return(RedirectToAction("Login", "User"));
        }
Exemple #3
0
        public ActionResult LandingURL(ModelLandingURL objModelLandingURL)
        {
            if (Session[DALVariables.UserAccountId] == null)
            {
                return(RedirectToAction("Login", "User"));
            }

            if (ModelState.IsValid)
            {
                try
                {
                    BLLPaymentService objBLLPaymentService = new BLLPaymentService();
                    StringBuilder     st     = new StringBuilder();
                    decimal           result = 0;
                    objModelLandingURL.MerchantAccountNo = Convert.ToInt32(Session[DALVariables.UserAccountId]);
                    result = objBLLPaymentService.UpdateMerchantCallBackURL(objModelLandingURL);
                    if (result > 0)
                    {
                        Success(string.Format("Response URL successfully updated.Now you can activate your payment service"));

                        return(RedirectToAction("Home", "User"));
                    }
                    else
                    {
                        Error(string.Format("Error occured while updating record"));
                        return(RedirectToAction("Home", "User"));
                    }
                }
                catch (Exception ex)
                {
                    DALUtility.ErrorLog(ex.Message, "LandingURL, Merchant");
                }
            }
            else
            {
                Error("Check error of form; Please correct to continue!");
                return(RedirectToAction("Home", "User"));
                //ModelState.AddModelError("", "Check error of form; Please correct to continue!");
            }
            return(RedirectToAction("Login", "User"));
        }