public void ViewerCheck()
        {
            //userLogin.AddLoginIds();
            try
            {
                Console.WriteLine("Enter user name");
                string name = Console.ReadLine();
                Console.WriteLine("Enter your user password");
                string password = Console.ReadLine();

                //Lambda expression to check username and password
                if (UserLoginDetails.listOfIds.Exists(username => username.Name == name))
                {
                    if (UserLoginDetails.listOfIds.Exists(pass => pass.Password == password))
                    {
                        Console.WriteLine("Successfully logged in!!!!!!!!!!!!!");
                    }
                    userLogedIn++;

                    movieModule.ViewMovieDetails();
                }

                else
                {
                    Console.WriteLine("Invalid data's!!!");
                    Console.WriteLine("Better sign in");
                    Console.WriteLine("Do you want");
                    UserLoginDetails.AskUserForSignin();
                }

                //}
            }
            catch (IOException ex)
            {
                Console.WriteLine(ex.Message);
            }
            catch (NullReferenceException ex)
            {
                Console.WriteLine(ex.Message);
            }
            catch (Exception ex)
            {
                Console.WriteLine(ex.Message);
            }
        }
        public void ViewMovieDetails()
        {
            Console.WriteLine("Display all movies running in threates\n");
            foreach (Movies list in listOfMovies)
            {
                Console.WriteLine("MovieId:{0}\nMovieName:{1}\nThreatreName:{2}\nLanguage:{3}\nDuration:{4}\nTotal-Seats Available:{5}\nAddress:{6}\n", list.MovieId, list.MovieName, list.ThreatreName, list.Language, list.Duration, list.TotalSeat, list.Address);
            }
            Console.WriteLine("Do you want to book tickets?\n1=>Yes\n2=No");
            try
            {
                int.TryParse(Console.ReadLine(), out int confirmInput);
                BookTicket book = new BookTicket();

                switch ((Choice)confirmInput)
                {
                case Choice.yes:
                    if (ValidateRoles.userLogedIn > 0 || ValidateRoles.adminLogedIn > 0)
                    {
                        book.SelectMoviesAndTickets();
                    }

                    else
                    {
                        UserLoginDetails.AskUserForSignin();
                    }
                    break;

                case Choice.no:
                    Console.WriteLine("Thanks!! See you again");
                    break;
                }
            }
            catch (Exception e)
            {
                Console.WriteLine(e.Message);
            }
        }