Exemplo n.º 1
0
        public ActionResult ManageMerchant(string merchantId = "")
        {
            MerchantModel merchantModel = new MerchantModel();

            if (!string.IsNullOrEmpty(merchantId))
            {
                merchantModel.MerchantID = merchantId.DecryptParameter();
                if (!string.IsNullOrEmpty(merchantModel.MerchantID))
                {
                    merchantModel            = _merchant.GetMerchantById(merchantModel.MerchantID).MapObject <MerchantModel>();
                    merchantModel.MerchantID = merchantModel.MerchantID.EncryptParameter();
                    merchantModel.UserID     = merchantModel.UserID.EncryptParameter();
                }
            }
            if (string.IsNullOrEmpty(merchantId))
            {
                merchantModel.MerchantCountry = "Nepal";
            }
            LoadDropDownList(merchantModel);
            return(View(merchantModel));
        }
Exemplo n.º 2
0
        public ActionResult PrintQR(string merchantId)
        {
            MerchantModel merchantModel = new MerchantModel();

            if (!string.IsNullOrEmpty(merchantId))
            {
                merchantModel.MerchantID = merchantId.DecryptParameter();
                if (!string.IsNullOrEmpty(merchantModel.MerchantID))
                {
                    merchantModel            = _merchant.GetMerchantById(merchantModel.MerchantID).MapObject <MerchantModel>();
                    merchantModel.MerchantID = merchantModel.MerchantID.EncryptParameter();
                    merchantModel.UserID     = merchantModel.UserID.EncryptParameter();
                    return(View(merchantModel));
                }
            }
            this.ShowPopup(1, "Error");
            return(RedirectToAction("Index"));
        }