public void UpdateUserCLI() { User user = new User(); AdminDA admin = new AdminDA(); PasswordProtection pp = new PasswordProtection(); ExcuteAdminCLI excute = new ExcuteAdminCLI(); Console.WriteLine(""); Console.WriteLine("+++ Update User Details +++"); Console.WriteLine(""); ViewUserCLI(); Console.WriteLine(""); Console.WriteLine("enter user id that want to change details :"); user.id = Int32.Parse(Console.ReadLine()); Console.WriteLine("enter user name :"); user.userName = Console.ReadLine(); Console.WriteLine("enter user password :"******"enter user role :"); Console.WriteLine(""); Console.WriteLine("1 - admin"); Console.WriteLine("2 - Team Lead"); Console.WriteLine("3 - Normal Member"); Console.WriteLine(""); Console.WriteLine("Enter respective number : "); user.role = Int32.Parse(Console.ReadLine()); var msg = admin.UpdateUserDA(user); Console.WriteLine(msg); Console.Clear(); excute.HeaderInfo(); ViewUserCLI(); Console.WriteLine(""); Console.WriteLine("** press [Esc] back to menu"); var k = Console.ReadKey(true); if (k.Key == ConsoleKey.Escape) { Console.Clear(); excute.Header(); } }