public static void DeleteSeasonsToTeamsRelation(SeasonsToTeamsRelation relation) { try { mSeasonsToTeamsRelationRepository.Delete(relation); } catch { } }
public static void AddSeasonsToTeamsRelation(Team team, Season season) { SeasonsToTeamsRelation relation = new SeasonsToTeamsRelation() { TeamId = team.Id, SeasonId = season.Id }; try { mSeasonsToTeamsRelationRepository.Save(relation); } catch { } }
public WcfRelation(SeasonsToTeamsRelation relation) { this.Id = relation.Id; this.SeasonId = relation.SeasonId; this.TeamId = relation.TeamId; }