public bool Equals(PlayAreaViewModel obj) { if (obj == null) { return(false); } return(obj.Model.Id == Model.Id); }
internal PlayAreaViewModel GetPlayAreaViewModel(Model.Models.Tournament tournament, Model.Models.PlayArea playArea) { PlayAreaViewModel playAreaViewModel; if (!_playAreas.TryGetValue(playArea.Id.Value, out playAreaViewModel)) { playAreaViewModel = new PlayAreaViewModel(tournament, playArea); _playAreas.Add(playArea.Id.Value, playAreaViewModel); } return(playAreaViewModel); }