public List<Club> GetClubsUserBelongsTo(Guid userID) { List<Club> clubs = new List<Club>(); List<int> clubIDs = new ClubDA().GetClubsUserBelongsTo(userID); foreach (int id in clubIDs) { clubs.Add(CFDataCache.GetClub(id)); } return clubs; }
public List <Club> GetClubsUserBelongsTo(Guid userID) { List <Club> clubs = new List <Club>(); List <int> clubIDs = new ClubDA().GetClubsUserBelongsTo(userID); foreach (int id in clubIDs) { clubs.Add(CFDataCache.GetClub(id)); } return(clubs); }
/// <summary> /// Group stuff /// </summary> public Club CreateClub(Club club) { Club newClub = new ClubDA().Insert(club); AddClubAreaTag(newClub.ID, GetAreaTagForCountry((Nation)newClub.CountryID).ID); CFLogger.RecordClubCreate(CurrentClimber.ID, club.Name, club.ID); CFDataCache.CacheAllClubs(); return(club); }
/// <summary> /// Group stuff /// </summary> public Club CreateClub(Club club) { Club newClub = new ClubDA().Insert( club ); AddClubAreaTag(newClub.ID, GetAreaTagForCountry((Nation)newClub.CountryID).ID); CFLogger.RecordClubCreate(CurrentClimber.ID, club.Name, club.ID); CFDataCache.CacheAllClubs(); return club; }
public DataTable GetClubesDT() { try { ClubDA clDA = new ClubDA(); var res = clDA.GetClubesDT(); clDA = null; return(res); } catch (Exception ex) { throw ex; } }
public List <ComboItem> GetClubesLista() { try { ClubDA clubDA = new ClubDA(); var res = clubDA.GetClubesLista(); clubDA = null; return(res); } catch (Exception ex) { throw ex; } }
public Club GetClubById(Int32 clubID) { try { ClubDA clubDA = new ClubDA(); var res = clubDA.GetClubById(clubID); clubDA = null; return(res); } catch (Exception ex) { throw ex; } }
public void ajouterClub(int id, String description) { c = new Club(id, description); cDA = new ClubDA(); Boolean test = cDA.insert(c); if (test == true) { MessageBox.Show("L'ajout de cette organisation est effectué avec succes", "Message", MessageBoxButtons.OK, MessageBoxIcon.Information); } else { MessageBox.Show("Erreur de l'insertion", "Message", MessageBoxButtons.OK, MessageBoxIcon.Error); } }
public ClubController() { cDA = new ClubDA(); }