public ClassWithTreeMatchingPropertiesCupTeamPlayer(Penalty penalty, int crappys, float felix, Cup cup, Team team, Player player)
 {
     this.Penalty = penalty;
     this.Crappys = crappys;
     this.felix = felix;
     this.Cup = cup;
     this.Team = team;
     this.Player = player;
 }
 public void MapToModel(Penalty penalty)
 {
     Penalty = penalty;
     LeagueId = penalty.League.Id;
     TeamId = penalty.Team.Id;
 }
 public PenaltyViewModel()
 {
     Penalty = new Penalty();
 }
 public ActionResult Edit(Penalty @penalty)
 {
     if (ModelState.IsValid) {
                 penaltyService.Update(@penalty);
                 penaltyService.Commit();
                 SuccessMessage(FormMessages.SaveSuccess);
                 return RedirectToAction("Index");
         }
         return View(@penalty);
 }