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 } )); }
public IActionResult Index() { var model = new TokensIndexModel(); return(View(model)); }