Ejemplo n.º 1
0
        public override void ViewDidLoad()
        {
            base.ViewDidLoad ();
            this.Title = "Meeting Info";

            UIBarButtonItem btn = new UIBarButtonItem ();
            btn.Image = UIImage.FromFile("Navigation Back Icon.png");
            btn.Clicked += (sender , e)=>{
                this.NavigationController.PopViewController(true);
            };
            NavigationItem.LeftBarButtonItem = btn;

            LabelNotes.Layer.BorderWidth = 1.0f;

            LabelNotes.ShouldBeginEditing = delegate {
                ScrollViewMeeting.SetContentOffset ( new CGPoint(0,350),true);
                ScrollViewMeeting.ContentSize = new CGSize (375.0f, 1000.0f);
                return true;
            };

            LabelNotes.Text = meetingObj.Comments;
            LabelNotes.ShouldChangeText = (text, range, replacementString) =>
            {
                if (replacementString.Equals("\n"))
                {
                    LabelNotes.EndEditing(true);
            //					ScrollViewMeeting.SetContentOffset ( new CGPoint(0,0),true);
                    ScrollViewMeeting.ContentSize = new CGSize (375.0f, 900.0f);
                    return false;
                }
                else
                {
                    return true;
                }
            };

            ButtonSaveNotes.TouchUpInside += (object sender, EventArgs e) => {
                UserMeetings usermeeting = new UserMeetings();
                usermeeting.Id = meetingObj.Id;
                usermeeting.Status= meetingObj.Status;
                usermeeting.Comments = LabelNotes.Text;
                AppDelegate.userBL.UpdateMeetingList(usermeeting);

                var alert = new UIAlertView ("Notes","Notes saved successfully !!", null, "Ok", null);
                alert.Show ();
            };

            //			UserMeetings usermeeting = new UserMeetings();
            //			usermeeting.Id = meetingObj.Id;
            //			usermeeting.Status="Done";
            //			usermeeting.Comments = meetingObj.Comments;
            //			AppDelegate.userBL.UpdateMeetingList(usermeeting);

            //LoadMeetingData ();
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Subscribes user for meeting, with approved status equals to false.
        /// </summary>
        /// <param name="meetingId">Primary key of meeting to subscribe.</param>
        /// <param name="userId">Primary key of user to subscribe for meeting.</param>
        /// <returns></returns>
        public async Task <OperationResult> SubscribeMeetingAsync(int meetingId, string userId)
        {
            if (string.IsNullOrEmpty(userId))
            {
                throw new ArgumentNullException("userId");
            }

            var entity = new UserMeetings
            {
                MeetingId = meetingId,
                UserId    = userId,
                Approved  = false
            };

            await _db.UserMeetings.AddAsync(entity);

            await _db.SaveChangesAsync();

            return(OperationResult.Success);
        }
Ejemplo n.º 3
0
        /// <summary>
        /// Approves user subscription for meeting by setting approved status to true.
        /// </summary>
        /// <param name="meetingId">Primary key of meeting to approve user subscription.</param>
        /// <param name="userId">Primary key of user to approve subscription.</param>
        /// <returns></returns>
        public async Task <OperationResult> ApproveMeetingParticipant(int meetingId, string userId)
        {
            if (string.IsNullOrWhiteSpace(userId))
            {
                throw new ArgumentNullException("userId");
            }

            var meeting = await _db.UserMeetings.FindAsync(userId, meetingId);


            var entity = new UserMeetings
            {
                UserId    = userId,
                MeetingId = meetingId,
                Approved  = true
            };

            _db.Entry(meeting).CurrentValues.SetValues(entity);
            await _db.SaveChangesAsync();

            return(OperationResult.Success);
        }
			void AddEvent(EKEvent calendarEvent)
			{
				UserMeetings userMeetings = new UserMeetings ();
				userMeetings.Id = 0;
				userMeetings.LeadId = AppDelegate.CurrentLead.LEAD_ID;
				userMeetings.UserId = AppDelegate.UserDetails.UserId;
				userMeetings.Subject = calendarEvent.Title;
				userMeetings.StartDate = DateTime.SpecifyKind(DateTime.Parse(calendarEvent.StartDate.ToString()),DateTimeKind.Local).ToString();
				userMeetings.EndDate = DateTime.SpecifyKind(DateTime.Parse(calendarEvent.EndDate.ToString()),DateTimeKind.Local).ToString();
				userMeetings.CustomerName = AppDelegate.CurrentLead.LEAD_NAME;
				userMeetings.City = AppDelegate.CurrentLead.CITY;
				userMeetings.State = AppDelegate.CurrentLead.STATE;
				userMeetings.Status = "";
				userMeetings.Comments = "";
				userMeetings.SFDCLead_ID = AppDelegate.CurrentLead.SFDCLEAD_ID;

				AppDelegate.leadsBL.SaveMeetingEvent (userMeetings);
				AppDelegate.UserDetails.MeetingCount = AppDelegate.UserDetails.MeetingCount + 1;
				//Xamarin Insights tracking
				Insights.Track ("SaveMeetingEvent", new Dictionary <string,string> {
					{ "LeadId", userMeetings.LeadId.ToString () },
					{ "UserId", userMeetings.UserId.ToString () },
					{ "Subject", userMeetings.Subject },
					{ "CustomerName", userMeetings.CustomerName }
				});
			}
 void AddEvent(EKEvent calendarEvent)
 {
     UserMeetings userMeetings = new UserMeetings ();
     if (!AppDelegate.IsFromRR) {
         userMeetings.Id = 0;
         userMeetings.LeadId = AppDelegate.CurrentLead.LEAD_ID;
         userMeetings.UserId = AppDelegate.UserDetails.UserId;
         userMeetings.Subject = calendarEvent.Title;
         userMeetings.StartDate = DateTime.SpecifyKind(DateTime.Parse(calendarEvent.StartDate.ToString()),DateTimeKind.Local).ToString();
         userMeetings.EndDate = DateTime.SpecifyKind(DateTime.Parse(calendarEvent.EndDate.ToString()),DateTimeKind.Local).ToString();
         userMeetings.CustomerName = AppDelegate.CurrentLead.LEAD_NAME;
         userMeetings.City = AppDelegate.CurrentLead.CITY;
         userMeetings.State = AppDelegate.CurrentLead.STATE;
         userMeetings.Status = "";
         userMeetings.Comments = "";
         userMeetings.SFDCLead_ID = AppDelegate.CurrentLead.SFDCLEAD_ID;
     } else {
         userMeetings.Id = 0;
         userMeetings.LeadId = (int) AppDelegate.CurrentRR.LeadID;
         userMeetings.UserId = AppDelegate.CurrentRR.SellerUserID;
         userMeetings.Subject = calendarEvent.Title;
         userMeetings.StartDate = DateTime.SpecifyKind(DateTime.Parse(calendarEvent.StartDate.ToString()),DateTimeKind.Local).ToString();
         userMeetings.EndDate = DateTime.SpecifyKind(DateTime.Parse(calendarEvent.EndDate.ToString()),DateTimeKind.Local).ToString();
         userMeetings.CustomerName = AppDelegate.CurrentRR.Prospect;
         userMeetings.City = AppDelegate.CurrentRR.City;
         userMeetings.State = AppDelegate.CurrentRR.State;
         userMeetings.Status = "";
         userMeetings.Comments = "";
         userMeetings.SFDCLead_ID = "";
     }
     AppDelegate.leadsBL.SaveMeetingEvent (userMeetings);
     AppDelegate.UserDetails.MeetingCount = AppDelegate.UserDetails.MeetingCount + 1;
     //Xamarin Insights tracking
     Insights.Track ("SaveMeetingEvent", new Dictionary <string,string> {
         { "LeadId", userMeetings.LeadId.ToString () },
         { "UserId", userMeetings.UserId.ToString () },
         { "Subject", userMeetings.Subject },
         { "CustomerName", userMeetings.CustomerName }
     });
     //				var notification = new UILocalNotification();
     //
     //				notification.AlertBody = AppDelegate.CurrentLead.LEAD_ID.ToString();
     //				// set the fire date (the date time in which it will fire)
     //				notification.FireDate = NSDate.FromTimeIntervalSinceNow(100);
     //				// configure the alert
     ////				notification.AlertAction = "View Alert";
     ////				notification.AlertBody = "Your one minute alert has fired!";
     //
     //				// modify the badge
     //				notification.ApplicationIconBadgeNumber = 1;
     //
     //				// set the sound to be the default sound
     //				notification.SoundName = UILocalNotification.DefaultSoundName;
     //
     //				// schedule it
     //				UIApplication.SharedApplication.ScheduleLocalNotification(notification);
 }
Ejemplo n.º 6
0
        public override void ViewDidLoad()
        {
            base.ViewDidLoad ();

            ScrollViewF2F.ContentSize = new CGSize (414f, 1113.0f);
            ViewF2FMeetingDown.Hidden = true;
            LabelConformMeeting.Text = "Confirm Your Meeting w/" + meetingObj.CustomerName;
            IList<string> ListThumbsDownReason = new List<string>
            {
                "Customer Cancelled",
                "No Show",
                "Need to Reschedule"
            };
            IList<string> ListCustomerCategorisation = new List<string>
            {
                "Dreamer",
                "Climber",
                "Purist"
            };
            IList<string> ListSalesStages = new List<string>
            {
                "New",
                "Working",
                "Connection Made",
                "Proposal Negotiation",
                "Closed Won"
            };
            IList<string> ListNextStep = new List<string>
            {
                "Get Product Info",
                "Purist"
            };

            List<LeadF2FFeedBack> leadf2ffeedbacklist = AppDelegate.leadsBL.GetLeadF2FFeedBack (meetingObj.LeadId);
            LeadF2FFeedBack leadf2ffeedbackLast = leadf2ffeedbacklist.Count > 0 ? leadf2ffeedbacklist[leadf2ffeedbacklist.Count -1 ] : null;

            cancelButton.TouchUpInside += (object sender, EventArgs e) => {
                UserMeetings usermeeting = new UserMeetings();
                usermeeting.Id = meetingObj.Id;
                usermeeting.Status="Done";
                usermeeting.Comments = meetingObj.Comments;
                AppDelegate.userBL.UpdateMeetingList(usermeeting);
                DismissViewController(true,null);
            };

            ButtonLikeMeeting.TouchUpInside += (object sender, EventArgs e) => {
                ButtonLikeMeeting.SetImage(UIImage.FromBundle ("Thumbs Up White.png"), UIControlState.Normal);
                ButtonDisLikeMeeting.SetImage(UIImage.FromBundle ("Thumbs Down Grey.png"), UIControlState.Normal);
                ButtonConfirmMeetingSide.SetImage(UIImage.FromBundle ("Grey Neutral.png"), UIControlState.Normal);
                localConfirmMeeting = "UP";
                ViewF2FMeetingDown.Hidden = true;
                localReasonForDown = "";
                TableViewInteractionDislikeReason.Hidden = true;
                ViewSecond.Frame = new CGRect (0, 173, this.View.Bounds.Size.Width, 1113);
                ScrollViewF2F.ContentSize = new CGSize (375.0f,910.0f);
            };

            ButtonDisLikeMeeting.TouchUpInside += (object sender, EventArgs e) => {
                ButtonLikeMeeting.SetImage(UIImage.FromBundle ("Thumbs Up Grey.png"), UIControlState.Normal);
                ButtonDisLikeMeeting.SetImage(UIImage.FromBundle ("Thumbs Down White.png"), UIControlState.Normal);
                ButtonConfirmMeetingSide.SetImage(UIImage.FromBundle ("Grey Neutral.png"), UIControlState.Normal);
                localConfirmMeeting = "DOWN";
                ViewF2FMeetingDown.Hidden = false;
                ViewSecond.Frame = new CGRect (0, 307, this.View.Bounds.Size.Width, 1250);
                ButtonMeetingDislikeReasonDropDown.Enabled = true;
            };

            ButtonConfirmMeetingSide.TouchUpInside+= (object sender, EventArgs e) => {
                ButtonLikeMeeting.SetImage(UIImage.FromBundle ("Thumbs Up Grey.png"), UIControlState.Normal);
                ButtonDisLikeMeeting.SetImage(UIImage.FromBundle ("Thumbs Down Grey.png"), UIControlState.Normal);
                ButtonConfirmMeetingSide.SetImage(UIImage.FromBundle ("Thumbs Side White.png"), UIControlState.Normal);
                localConfirmMeeting = "SIDE";
                localReasonForDown = "";
                ViewF2FMeetingDown.Hidden = true;
                ViewSecond.Frame = new CGRect (0, 173, this.View.Bounds.Size.Width, 1113.0f);
                TableViewInteractionDislikeReason.Hidden = true;

            };

            ButtonLikeMeetingInfoHelpful.TouchUpInside += (object sender, EventArgs e) => {
                ButtonLikeMeetingInfoHelpful.SetImage(UIImage.FromBundle ("Thumbs Up White.png"), UIControlState.Normal);
                ButtonDisLikeMeetingInfoHelpful.SetImage(UIImage.FromBundle ("Thumbs Down Grey.png"), UIControlState.Normal);
                ButtonMeetingInfoSide.SetImage(UIImage.FromBundle ("Grey Neutral.png"), UIControlState.Normal);
                localMeetingInfoHelpFull = "UP";

            };

            ButtonDisLikeMeetingInfoHelpful.TouchUpInside += (object sender, EventArgs e) => {
                ButtonLikeMeetingInfoHelpful.SetImage (UIImage.FromBundle ("Thumbs Up Grey.png"), UIControlState.Normal);
                ButtonDisLikeMeetingInfoHelpful.SetImage (UIImage.FromBundle ("Thumbs Down White.png"), UIControlState.Normal);
                ButtonMeetingInfoSide.SetImage(UIImage.FromBundle ("Grey Neutral.png"), UIControlState.Normal);
                localMeetingInfoHelpFull = "DOWN";

            };
            ButtonMeetingInfoSide.TouchUpInside+= (object sender, EventArgs e) => {
                ButtonLikeMeetingInfoHelpful.SetImage (UIImage.FromBundle ("Thumbs Up Grey.png"), UIControlState.Normal);
                ButtonDisLikeMeetingInfoHelpful.SetImage (UIImage.FromBundle ("Thumbs Down Grey.png"), UIControlState.Normal);
                ButtonMeetingInfoSide.SetImage(UIImage.FromBundle ("Thumbs Side White.png"), UIControlState.Normal);
                localMeetingInfoHelpFull = "SIDE";
            };

            //			ButtonLikeLeadAdvanced.TouchUpInside += (object sender, EventArgs e) => {
            //				ButtonDisLikeLeadAdvanced.SetImage(UIImage.FromBundle ("Thumbs Down Grey.png"), UIControlState.Normal);
            //				ButtonLikeLeadAdvanced.SetImage(UIImage.FromBundle ("Thumbs Up White.png"), UIControlState.Normal);
            //				localLeadAdvanced = "UP";
            //			};

            ButtonLikeLeadAdvanced.TouchUpInside += (object sender, EventArgs e) => {
                ButtonLikeLeadAdvanced.SetImage(UIImage.FromBundle ("Thumbs Up White.png"), UIControlState.Normal);
                ButtonDisLikeLeadAdvanced.SetImage(UIImage.FromBundle ("Thumbs Down Grey.png"), UIControlState.Normal);
                ButtonLeadAdvancedSide.SetImage(UIImage.FromBundle ("Grey Neutral.png"), UIControlState.Normal);
                localLeadAdvanced = "UP";
                if(leadf2ffeedbackLast != null && leadf2ffeedbackLast.LeadAdvanced == "UP")
                {
                    UIAlertView alert = new UIAlertView () {
                    Title = "",
                    Message = "Looks like things are going well. Would you like to update your sales stage?"
                    };
                    alert.AddButton ("OK");
                    alert.Show ();
                }
            };

            ButtonDisLikeLeadAdvanced.TouchUpInside += (object sender, EventArgs e) => {
                ButtonLikeLeadAdvanced.SetImage (UIImage.FromBundle ("Thumbs Up Grey.png"), UIControlState.Normal);
                ButtonDisLikeLeadAdvanced.SetImage (UIImage.FromBundle ("Thumbs Down White.png"), UIControlState.Normal);
                ButtonLeadAdvancedSide.SetImage(UIImage.FromBundle ("Grey Neutral.png"), UIControlState.Normal);
                localLeadAdvanced = "DOWN";
            };
            ButtonLeadAdvancedSide.TouchUpInside+= (object sender, EventArgs e) => {
                ButtonLikeLeadAdvanced.SetImage (UIImage.FromBundle ("Thumbs Up Grey.png"), UIControlState.Normal);
                ButtonDisLikeLeadAdvanced.SetImage (UIImage.FromBundle ("Thumbs Down Grey.png"), UIControlState.Normal);
                ButtonLeadAdvancedSide.SetImage(UIImage.FromBundle ("Thumbs Side White.png"), UIControlState.Normal);
                localLeadAdvanced = "SIDE";
            };

            TableViewInteractionDislikeReason.Hidden = true;
            TableViewInteractionDislikeReason.Source = new TableSource (ListThumbsDownReason, this,"ReasonForPass");
            ButtonMeetingDislikeReasonDropDown.TouchUpInside += (object sender, EventArgs e) => {
                localReasonForDown = "Customer Cancelled";

            //				ViewFirst.Frame =
                TableViewInteractionDislikeReason.Hidden = false;
            };

            TableViewSalesStage.Source = new TableSource (ListSalesStages, this,"SalesStage");
            localSalesStage = "New";
            ButtonSaleStageDropDown.TouchUpInside += (object sender, EventArgs e) => {
                TableViewSalesStage.Hidden = false;
            };

            TableViewCustomerCategorization.Source = new TableSource (ListCustomerCategorisation, this, "CustomerCategorisation");
            localCustomerCategorization = "Dreamer";
            ButtonCustomerCategorizationDropDown.TouchUpInside += (object sender, EventArgs e) =>  {
                localCustomerCategorization = "Dreamer";
                TableViewCustomerCategorization.Hidden = false;
            };

            TableViewNextSteps.Source = new TableSource (ListNextStep, this, "NextStep");
            localNextSteps = "Get Product Info";
            ButtonNextStepsDropDown.TouchUpInside += (object sender, EventArgs e) =>  {
                localNextSteps = "Get Product Info";
                TableViewNextSteps.Hidden = false;
            };

            ButtonSubmit.TouchUpInside += (object sender, EventArgs e) => {
                LeadF2FFeedBack leadf2ffeedback = new LeadF2FFeedBack ();
                leadf2ffeedback.LeadID = meetingObj.LeadId;
                leadf2ffeedback.UserID = AppDelegate.UserDetails.UserId;
                leadf2ffeedback.ReasonForDown = localReasonForDown;
                leadf2ffeedback.ConfirmMeeting = localConfirmMeeting;
                leadf2ffeedback.CustomerCategorization = localCustomerCategorization;
                leadf2ffeedback.MeetingInfoHelpFull = localMeetingInfoHelpFull;
                leadf2ffeedback.LeadAdvanced = localLeadAdvanced;
                leadf2ffeedback.NextSteps = localNextSteps;
                leadf2ffeedback.SalesStage = localSalesStage;
                leadf2ffeedback.MeetingID = meetingObj.Id;
                AppDelegate.leadsBL.SaveLeadF2FFeedBack (leadf2ffeedback);
                //Xamarin Insights tracking
                Insights.Track("Save LeadF2F FeedBack", new Dictionary <string,string>{
                    {"UserId", leadf2ffeedback.UserID.ToString()},
                    {"LeadID", leadf2ffeedback.LeadID.ToString()},
                    {"MeetingID", leadf2ffeedback.MeetingID.ToString()}
                });

                UserMeetings usermeeting = new UserMeetings();
                usermeeting.Id = meetingObj.Id;
                usermeeting.Status="Done";
                usermeeting.Comments = meetingObj.Comments;
                AppDelegate.userBL.UpdateMeetingList(usermeeting);
                //Xamarin Insights tracking
                Insights.Track("Update MeetingList", new Dictionary <string,string>{
                    {"Id", usermeeting.Id.ToString()},
                    {"Status", usermeeting.Status}
                });

               string[] domainArr = AppDelegate.UserDetails.Email.Split('@');

                if(!string.IsNullOrEmpty(meetingObj.SFDCLead_ID) && meetingObj.SFDCLead_ID != "N/A" && (localSalesStage == "New" || localSalesStage== "Working"))
                {
                    if(string.IsNullOrEmpty(AppDelegate.accessToken))
                    {
                        //AppDelegate.accessToken = AppDelegate.leadsBL.SFDCAuthentication(AppDelegate.UserDetails.UserId);
                        AppDelegate.accessToken = AppDelegate.leadsBL.SFDCAuthentication(domainArr[1]);
                    }
            //					string[] salesStageArray = localSalesStage.Split(' ');
            //					string salesStatus = salesStageArray.Length == 3 ? salesStageArray[1] + " " + salesStageArray[2] : salesStageArray[1];
                    AppDelegate.leadsBL.UpdateSFDCData(AppDelegate.accessToken,meetingObj.SFDCLead_ID,localSalesStage);
                }

                if(localSalesStage == "Closed Won")
                {
                    DealHistroy dealHistory = new DealHistroy();
                    dealHistory.UserId = AppDelegate.UserDetails.UserId;
                    dealHistory.State = meetingObj.State;
                    dealHistory.City = meetingObj.City;
                    dealHistory.Date = meetingObj.EndDate;
                    //dealHistory.country = "USA";
                    dealHistory.CustomerName = meetingObj.CustomerName;
                    dealHistory.LeadId = meetingObj.LeadId;
                    dealHistory.BrokerID = 0;
                    dealHistory.LeadIndustry = AppDelegate.UserDetails.Industry;
                    try {
                        AppDelegate.customerBL.SaveDealHistory(dealHistory);
                    }
                    catch
                    {
                    }
                    //Xamarin Insights tracking
                    Insights.Track("Save DealHistory", new Dictionary <string,string>{
                        {"UserId", dealHistory.UserId.ToString()},
                        {"CustomerName", dealHistory.CustomerName},
                        {"LeadId",dealHistory.LeadId.ToString()}
                    });
                }
                AppDelegate.IsUpdateLeadDone = true;
                DismissViewController(true,null);
            };
        }
 public void UpdateCell(UserMeetings userMeetings)
 {
     LabelMeetingWith.Text = userMeetings.Subject ;
     LabelMeetingDate.Text = DateTime.Parse(userMeetings.StartDate).ToString("MMM. dd, yyyy  hh:mm tt");
     LabelMeetingLocation.Text = "Location: " + userMeetings.City + ", " + userMeetings.State;
 }
Ejemplo n.º 8
0
            void AddEvent(EKEvent calendarEvent)
            {
                UserMeetings userMeetings = new UserMeetings ();
                userMeetings.Id = 0;
                userMeetings.LeadId = (int) AppDelegate.CurrentRR.LeadID;
                userMeetings.UserId = AppDelegate.CurrentRR.SellerUserID;
                userMeetings.Subject = calendarEvent.Title;
                userMeetings.StartDate = DateTime.SpecifyKind(DateTime.Parse(calendarEvent.StartDate.ToString()),DateTimeKind.Local).ToString();
                userMeetings.EndDate = DateTime.SpecifyKind(DateTime.Parse(calendarEvent.EndDate.ToString()),DateTimeKind.Local).ToString();
                userMeetings.CustomerName = AppDelegate.CurrentRR.Prospect;
                userMeetings.City = AppDelegate.CurrentRR.City;
                userMeetings.State = AppDelegate.CurrentRR.State;
                userMeetings.Status = "";
                userMeetings.Comments = "";
                userMeetings.SFDCLead_ID = "";//AppDelegate.CurrentRR.SFDCLead_ID;
                AppDelegate.leadsBL.SaveMeetingEvent (userMeetings);
                AppDelegate.UserDetails.MeetingCount = AppDelegate.UserDetails.MeetingCount + 1;
                //Xamarin Insights tracking
                Insights.Track ("SaveMeetingEvent", new Dictionary <string,string> {
                    { "LeadId", userMeetings.LeadId.ToString () },
                    { "UserId", userMeetings.UserId.ToString () },
                    { "Subject", userMeetings.Subject },
                    { "CustomerName", userMeetings.CustomerName }
                });

                myObject.AlertSubViewRequestMeeting.Hidden = true;
                myObject.ViewReferralRequestMade.Hidden = false;
                AppDelegate.referralRequestBL.UpdateReferralRequest(myObject.refferalRequests.ID,4);
                if(AppDelegate.CurrentRRList.Contains(myObject.refferalRequests))
                    AppDelegate.CurrentRRList.Remove(myObject.refferalRequests);
            }
Ejemplo n.º 9
0
//
//		public Leads GetLeadDetails(int leadId)
//		{
//			//RestService restSevice = new RestService ();
//			string leadsApicall = Constants.LeadsAPI + "?leadid=" + leadId ;
//
//			string response =  RestService.Instance.GetData (leadsApicall);
//			var parsedResponse = Newtonsoft.Json.JsonConvert.DeserializeObject<Leads>(response.ToString());
//			return parsedResponse;
//		}


		public string SaveMeetingEvent(UserMeetings userMeetings)
		{
			//RestService restSevice = new RestService ();
			string postData = Newtonsoft.Json.JsonConvert.SerializeObject(userMeetings);
			string response = RestService.Instance.PostData (Constants.MeetingList, postData);
			string parsedResponse = Newtonsoft.Json.JsonConvert.DeserializeObject<string>(response.ToString());
			return parsedResponse;
			
		}