public void DeleteSelected(object selectedPhysician) { containingShellVm.LetUserDecide("Are you sure you want to delete this physician from the system?", new Action(() => RemoveItemFromDb(selectedPhysician))); }
public void UserWantsToReplaceExistingItem() { containingVm.LetUserDecide("A patient with this ID already exists in the system. \nDo you want to override it?", new Action(UpdateExistingItem)); }
public void DeleteSelected(object ingredient) { containingVm.LetUserDecide("Are you sure you want to delete this ingredient from the system?", new Action(() => RemoveItemFromDb(ingredient))); }