Created
August 30, 2010 13:42
-
-
Save ArnisL/557417 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[HttpPost] | |
public ActionResult ReceivePaperVersion(Application a,ReceivePaperVersionInput inp){ | |
var r=new Func<ActionResult>(()=>RedirectToAction("Details",new {a.Id})); | |
return this.Do( | |
()=>{ | |
a.ReceivePaperVersion(inp.PaperVersionSendDate.Value,inp.PaperVersionArrivalDate.Value); | |
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