//public ClubCloud_Foto GetFotoByNummer(string bondsnummer, Guid verenigingId, string nummer, bool refresh = false) //{ // ClubCloud_Foto foto = null; // if (SPContext.Current != null && SPContext.Current.Web != null) // { // ClubCloudServiceClient client = new ClubCloudServiceClient(SPServiceContext.Current); // foto = client.GetFotoByNummer(bondsnummer, verenigingId, nummer, refresh); // } // return foto; //} public ClubCloud_Foto GetFotoById(string bondsnummer, Guid verenigingId, Guid gebruikerId, bool refresh = false) { ClubCloud_Foto foto = null; if (SPContext.Current != null && SPContext.Current.Web != null) { ClubCloudServiceClient client = new ClubCloudServiceClient(SPServiceContext.Current); foto = client.GetFotoForGebruikerById(bondsnummer, gebruikerId, refresh, new ClubCloud_Setting { Id = int.Parse(bondsnummer), VerenigingId = verenigingId, GebruikerId = gebruikerId }); } return(foto); }