public void UpdateCell(Leads leads)
 {
     //			ImageViewLeadImage.Image = UIImage.FromBundle ();
     LabelLeadStory.Text = leads.BUSINESS_NEED;
     LabelLeadScore.Text = "Score: " + leads.LEAD_SCORE.ToString();
     LabelLeadSource.Text = "Source:" + leads.LEAD_SOURCE;
     LabelLeadHours.Text = DateTime.Now.Hour.ToString() + "h";
 }
		public Leads GetLeadsDetails(int Leadid, int userID,int LeadSource)
		//public Leads GetLeadsDetails(int Leadid, int userID)
		{
			//RestService restSevice = new RestService ();
			string leadsApicall = Constants.LeadsAPI + "?id=" + Leadid + "&userid=" + userID + "&LeadSource=" + LeadSource;
			//string leadsApicall = Constants.LeadsAPI + "?id=" + Leadid + "&userid=" + userID;
			var parsedResponse = new Leads();
			try
			{
				string response =  RestService.Instance.GetData (leadsApicall);
				parsedResponse = Newtonsoft.Json.JsonConvert.DeserializeObject<Leads>(response.ToString());
			}
			catch {

			}
			return parsedResponse;
		}
 public alerViewDelegate(LeadDetailVC leadDetailsVC, Leads lead)
 {
     leadDetailsObject = leadDetailsVC;
     leadObj = lead;
 }
		public int UpdateReasonForPass(int leadid, string reasonForPass,int userID)
		{
			Leads leads = new Leads ();
			leads.LEAD_ID = leadid;
			leads.USER_LEAD_STATUS = 5;
			leads.REASON_FOR_PASS = reasonForPass;
			leads.USER_ID = userID;
			//RestService restSevice = new RestService ();
			string leadsApicall = Constants.LeadsAPI;
			string postData = Newtonsoft.Json.JsonConvert.SerializeObject(leads);
			string response =  RestService.Instance.PostData (leadsApicall, postData);
			var parsedResponse = Newtonsoft.Json.JsonConvert.DeserializeObject<int>(response.ToString());
			return parsedResponse;
		}