Example #1
0
        internal void InsertNewCar()
        {
            Owner newOwner      = readOwner();
            bool  isOwnerExists = m_Garage.AddCar(newOwner);

            if (isOwnerExists)
            {
                PromptConsoleMsg(string.Format(
                                     "{0} vehicle is already exists in the garage! changing vehicle status to : In Repair",
                                     newOwner.OwnerName));
            }
            else
            {
                PromptConsoleMsg("Successfully added your car to the garage!");
            }
        }