/// <summary> /// Method to delete a cooking instruction from the database /// </summary> /// <param name="instruction"></param> /// <returns></returns> public async Task DeleteCookingInstructionAsync(ComboBox instruction) { var isValid = ValidationObject.ValidateInstructionSelection(instruction); if (isValid) { var instructionToDelete = instruction.SelectedItem as CookingInstructionDTO; var deleted = await BusinessObject.DeleteCookingInstructionAsync(instructionToDelete); if (deleted) { ShowMessage($"Cooking Instruction {instructionToDelete.Name} Deleted Successfully"); } else { ShowMessage($"Cooking Instruction {instructionToDelete.Name} Not Deleted"); } } }