public void register()
        {
            AdminInfo adminInfoObj = new AdminInfo();
            Boolean   Isboolean    = true;

            while (Isboolean)
            {
                Console.WriteLine("1:Register new Admin ");
                Console.WriteLine("2:Login");
                int userOption = Convert.ToInt32(Console.ReadLine());
                switch (userOption)
                {
                case 1:
                    Console.WriteLine("Enter your UserName:"******"Enter your firstName:");
                    adminInfoObj.firstName = Console.ReadLine();
                    Console.WriteLine("Enter your lastName :");
                    adminInfoObj.lastName = Console.ReadLine();

                    Console.WriteLine("Enter your emailId :");
                    adminInfoObj.Email = Console.ReadLine();
                    Console.WriteLine("Enter your mobile Number :");
                    adminInfoObj.PhoneNo = Convert.ToInt64(Console.ReadLine());
                    Console.WriteLine("Enter your password :"******"Registration successfull");
                        }
                    }
                    catch (EntityException ex)
                    {
                        Console.WriteLine("you have missed some filed, Try Again !!! " + ex);
                    }

                    break;

                case 2:

                    Console.WriteLine("Enter your valid UserName :"******"Enter your password :"******"Login Successfull");
                                adminOperation();
                            }
                            else
                            {
                                Console.WriteLine("Incorrect userName and password , Enter correct UserName and password");
                            }
                        }
                    }


                    break;
                }
            }
        }
        public void userLogin()
        {
            Boolean   isregister   = true;
            usersInfo usersInfoObj = new usersInfo();

            while (isregister)
            {
                Console.WriteLine("1: Register New Account ");
                Console.WriteLine("2: Login with existing userName and password");

                int userOption = Convert.ToInt32(Console.ReadLine());
                switch (userOption)
                {
                case 1:
                    Console.WriteLine("Enter your user name :");
                    usersInfoObj.NameUser = Console.ReadLine();
                    Console.WriteLine("Enter your fullName :");
                    usersInfoObj.FullName = Console.ReadLine();
                    Console.WriteLine("Enter your Email Id ");
                    usersInfoObj.Email = Console.ReadLine();
                    Console.WriteLine("Enter your phone no :");
                    usersInfoObj.mobileNo = Convert.ToInt64(Console.ReadLine());
                    Console.WriteLine("Enter your password :"******"Registration successfull");
                        }
                    }
                    catch (EntityException ex)
                    {
                        Console.WriteLine("you have missed some filed, Try Again !!! " + ex);
                    }
                    break;

                case 2:

                    Console.WriteLine("Enter your valid userName :"******"Enter your password :"******"Login Successfull");
                                listOfMovies();
                            }
                            else
                            {
                                Console.WriteLine("Incorrect userName and password , Enter correct UserName and password");
                            }
                        }
                    }
                    break;
                }
            }
        }