/// <summary> /// get the gender of the users who shared campaigns from the db and send it to js to draw a pie chart /// </summary> private void UpdateCampaignShareGender() { try { User us = new User(); Dictionary<string, int> gender = us.GetCampignsShareGender(email); script.Append("drawCampaignShareGenderChart('campaignsGender','" + gender["male"] + "','" + gender["female"] + "');"); } catch (Exception) { throw; } }