public ActionResult fnDecrypt(clsEncodeDecode model) { //using System.Configuration; string EncKeyBase = ""; EncKeyBase = ConfigurationManager.AppSettings["enc_key_base"].ToString(); clsEncryption enc = new clsEncryption(EncKeyBase); if (string.IsNullOrEmpty(model.strToDecode)) { model.strResult2 = "Cadena vacia.. ingrese un valor..."; } else { model.strResult2 = enc.fnGetDecrypt(model.strToDecode); } return(PartialView("Index", model)); }
// // GET: /Encryption/ public ActionResult Index() { clsEncodeDecode model = new clsEncodeDecode(); return(PartialView("Index", model)); }