/// <summary> /// Chiking customer ID inputs from customers. If it is correct returns customer location /// </summary> /// <param name="plate"></param> /// <returns></returns> public int CheckIfCustomerExist() { Console.WriteLine("Enter Client Id to update"); int customerId = Utility.InputAndValidatInt(); if (!customerController.FindCustomerById(customerId)) { Utility.ErrorMessage($"Customer with id: {customerId} doesn't exist"); Utility.WarningMessage("Try one more! To exit in main menu hit ESC"); return(0); } ; return(customerId); }