How can I make a blocking mechanic for a game (in C#)

I’ve been trying to use a method for blocking an enemy damage ,as an input by the user and have two conditions , one of which is if the block is successful and the other is if the block fails (If succeed it should return back to the menu options but if it fails it should continue to the rest of the code, it’s important to mention that the player menu and the block method are in a different class and the method is invoked inside the class of the program .