public bool IsCategoryAvailable() { { bool correctInput = true; bool isAvailable = false; char sign; string input; Console.WriteLine("Is Category available? Enter y/n"); do { IsWrongInput(correctInput); try { input = Console.ReadLine().ToLower(); sign = char.Parse(input); correctInput = ValidateInput.CheckSign(sign, correctInput); isAvailable = ValidateInput.IsAvailableOrNot(sign, isAvailable); } catch (Exception) { correctInput = false; } }while (!correctInput); return(isAvailable); } }