Exemplo n.º 1
0
        public IActionResult Result2()
        {
            Result2ViewModel result2ViewModel = new Result2ViewModel();

            result2ViewModel.Error = "To add a new shape, please return to the 'Add' page.";



            return(View(result2ViewModel));
        }
Exemplo n.º 2
0
        public IActionResult Result2(Result2ViewModel result2ViewModel)



        {
            if (ModelState.IsValid)
            {
                Encrypt mess = new Encrypt(result2ViewModel.decrypt);

                result2ViewModel.messout = mess.Decrypt(result2ViewModel.decrypt);

                return(View(result2ViewModel));
            }


            return(Redirect("/Home/Error"));
        }