Пример #1
0
        public void Show()
        {
            while (true)
            {
                UserManagementEnum choice = RenderMenu();
                switch (choice)
                {
                case UserManagementEnum.GetAll:
                {
                    GetAll();
                    break;
                }

                case UserManagementEnum.Add:
                {
                    Add();
                    break;
                }

                case UserManagementEnum.Edit:
                {
                    Edit();
                    break;
                }

                case UserManagementEnum.Delete:
                {
                    Delete();
                    break;
                }

                case UserManagementEnum.Logout:
                {
                    AuthenticationService.AuthenticatLogoutAccount(AuthenticationService.LoggedUser);
                    break;
                }

                case UserManagementEnum.Exit:
                {
                    System.Environment.Exit(0);
                    break;
                }
                }
                if (AuthenticationService.LoggedUser == null)
                {
                    break;
                }
            }
        }