asp.net mvc - Break Out of an ActionResult without Redirect -


is there way straight break-out actionresult method? i'm running manual verification in form's submit controller. if validation fails, want exit out of method. no redirect, nothing. stop in it's tracks , exit out. break or exit. exist, or have have return redirect()?

simply use codereturn view(); , if want return something, can use typed , return in view following :

return view(model); 

Comments

Popular posts from this blog

yii2 - Yii 2 Running a Cron in the basic template -

asp.net - 'System.Web.HttpContext' does not contain a definition for 'GetOwinContext' Mystery -

mercurial graft feature, can it copy? -