Beispiel #1
0
        public IActionResult Index(TokensIndexModel model)
        {
            if (ModelState.IsValid)
            {
                var errors = model.Test();
                addErrors(errors);
            }

            if (!ModelState.IsValid)
            {
                return(View(model));
            }

            return(RedirectToAction(
                       model.SecurityAction.ToString(),
                       new { id = model.Token }
                       ));
        }
Beispiel #2
0
        public IActionResult Index()
        {
            var model = new TokensIndexModel();

            return(View(model));
        }