private async Task Delete() { if (SelectedRecipient != null) { _recipientService.Delete(SelectedRecipient); Recipients.Remove(Recipients.Where(x => x.Id == SelectedRecipient.Id).FirstOrDefault()); Messenger.Default.Send(SelectedRecipient); } }
public async Task Delete(Guid id) { await _service.Delete(id); }