public void DeleteVisit() { var visit = ListWithData.SelectedItem; if (visit != null) { ItemsRepository.DeleteVisit(visit as VisitItem); } }
public void DeleteVisit() { var visit = ListWithData.SelectedItem; if (visit != null) { ItemsRepository.DeleteVisit(visit as VisitItem); } }