public void DeleteSelected(object selectedPrescription)
        {
            Recept recept = selectedPrescription as Recept;

            if (DrugsPreviouslyTaken.Contains(recept))
            {
                containingVm.ShowMessage("An expired prescription cannot be deleted");
            }
            else
            {
                containingVm.LetUserDecide("Are you sure you want to delete this prescription from the system?", new Action(() => RemoveItemFromDb(selectedPrescription)));
            }
        }
 void IAddToDb.UserWantsToReplaceExistingItem()
 {
     containingVm.LetUserDecide("A medical record already exists in the system. \nDo you want to override it?", new Action(UpdateExistingItem));
 }
 public void UserWantsToReplaceExistingItem()
 {
     containingShellVm.LetUserDecide("A medical file already exists in the system. \nDo you want to override it?", new Action(UpdateExistingItem));
 }