private void PopulateRecipientsModelCollection() { //clear list (bindable collection) AvailableRecipients.Clear(); //for every read SMS recipient foreach (var item in _originalListOfRecipients) { SMSrecipientExportModel model = new SMSrecipientExportModel() { ToExport = false, Identity = item.Identity, FirstName = item.FirstName, LastName = item.LastName, AreaCode = item.AreaCode, PhoneNumber = item.PhoneNumber, }; AvailableRecipients.Add(model); } }
private bool CheckIfAtLeastOneRecipientIsSelected() { return(AvailableRecipients.Where(x => x.ToExport == true).Count() > 0); }