Exemple #1
0
        public ActionResult OutputEncoding()
        {
            var model = new OutputEncodingModel();

            // Sanitize Path
            if (model.Path.Contains(HttpRuntime.AppDomainAppPath))
            {
                model.Path = "~\\";
            }
            // Sanitize Credit Card Number
            var first4 = model.CreditCardNumber.Substring(0, 4);
            var last4  = model.CreditCardNumber.Substring(model.CreditCardNumber.Length - 4, 4);

            model.CreditCardNumber = first4 + " **** **** " + last4;
            return(View(model));
        }
        public ActionResult OutputEncoding()
        {
            var model = new OutputEncodingModel();

            return(View(model));
        }