public void Update(ScoreEntryUpdateCommand command) { Scores = command.Scores; Comments = command.Comments; GrandTotal = command.GrandTotal; }
public JsonDotNetResult ScoreEntry(ScoreEntryUpdateCommand command) { return Execute( action: () => { var ps = GetPerformanceScore(command.PerformanceId); var result = ""; if (ps.IsScoringComplete) //must have been sitting on the page; bail out and don't update the score { result = Url.Action("Summary", "Scoring", new { performanceId = command.PerformanceId.ForScoringMvc() }); } else { var score = RavenSession .Load<JudgeScore>(JudgeScore.FormatId(command.PerformanceId, command.JudgeId)); score.Update(command); result = GetNextScoreEntryUrl(command.PerformanceId, command.JudgeId); } return new JsonDotNetResult(result); }); }