Exemplo n.º 1
0
 private async Task Add()
 {
     if (EmailToCreate != null && NameToCreate != null)
     {
         var newRecipient = new Recipient()
         {
             Email = EmailToCreate, Name = NameToCreate
         };
         _recipientService.Add(newRecipient);
         Recipients = new ObservableCollection <Recipient>(_recipientService.GetAll());
         Messenger.Default.Send(newRecipient);
     }
 }