Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
public ActionResult ReceivePaperVersion(Application a,ReceivePaperVersionInput inp){
var r=new Func<ActionResult>(()=>RedirectToAction("Details",new {a.Id}));
return this.Do(
this.Flash("Application paper version received!");
return r();
},r); //1st arg==happy path, 2nd arg==onFail
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment