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
Post a Comment