/// <summary> /// Return the member's photo Url /// </summary> /// <param name="id">id of the member as int</param> /// <returns>Member's photo's url as string</returns> public String GetMemberMedia(int id = 1) { try { IPublishedContent member = memberShipHelper.GetById(id); IPublishedContent employee = this.memberShipHelper.GetEmployeeFromMember(member); string url = employee.GetPropertyValue("employeeImage").ToString(); if (url == null || url.Equals("")) { return(null); } else { return(url); } } catch (Exception ex) { return(""); } }