async private void GetLeadsByEmployeeAsSalepersonID(int iemployeeID) { //await s1.GetLeadsBySalesPersonID(s1.LoggedInEmployee); await s1.GetCalendarDataByEmployeeID(s1.LoggedInEmployee); foreach (DTO_CalendarData c in s1.CalendarDataList) { c.AppointmentText = ConvertLookUpToString(c.AppointmentTypeID); } foreach (DTO_CalendarData d in s1.CalendarDataList) { if ((int?)d.LeadID != null) { cd.Add(d); } } MRNCalendar cal = new MRNCalendar(cd); // this.dTO_LeadDataGrid.ItemsSource = s1.LeadsList; this.dTO_CalendarDataDataGrid.ItemsSource = cd; }