Created
July 8, 2010 16:40
-
-
Save rauhryan/468282 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
public class ViewFieldScoresAction | |
{ | |
private readonly IFieldScoreTasks _fieldScoreTasks; | |
public ViewFieldScoresAction(IFieldScoreTasks fieldScoreTasks) | |
{ | |
_fieldScoreTasks = fieldScoreTasks; | |
} | |
public FubuContinuation Get(FieldScoresInputViewModel inModel) | |
{ | |
var model = _fieldScoreTasks.BuildFieldScoresIndex(inModel); | |
return model == null | |
? FubuContinuation.RedirectTo(new LoginRequest()) | |
: FubuContinuation.TransferTo<ViewFieldScoresAction>(x => x.Display(model)); | |
} | |
public FieldScoresInputViewModel Display(FieldScoresInputViewModel request) | |
{ | |
return request; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment