Commit före flytt avStatusparameter från point till round
This commit is contained in:
@ -80,7 +80,7 @@ public class RoundStartingViewModel : ViewModelBase
|
||||
ParticipantId = item.ParticipantId,
|
||||
GameRoundId = GameRoundObject?.GameRoundId ?? 0,
|
||||
GameDate = DateTime.Now,
|
||||
GameRoundRegNr = 0,
|
||||
GameRoundRegNr = -1,
|
||||
GameRegPoints = 0,
|
||||
PointStatus = GamePointStatus.New
|
||||
};
|
||||
@ -187,11 +187,22 @@ public class RoundStartingViewModel : ViewModelBase
|
||||
if (tmp)
|
||||
{
|
||||
GameRoundObject = new GameRound();
|
||||
RoundElements.Clear();
|
||||
this.Get();
|
||||
}
|
||||
return tmp;
|
||||
}
|
||||
|
||||
public void Rensa()
|
||||
{
|
||||
foreach (var element in RoundElements)
|
||||
{
|
||||
_pointsRepo.DeleteById(element.GamePointId);
|
||||
}
|
||||
_Repository?.DeleteById(GameRoundObject?.GameRoundId ?? 0);
|
||||
RoundElements.Clear();
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user