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