/// <summary> /// Get manger details from user /// </summary> /// <returns></returns> public void GetManagerDetails() { string name, email, password; do { Console.WriteLine("Please enter your information to sign up to SoilMates"); Console.WriteLine("Enter your name:"); name = Console.ReadLine(); Console.WriteLine("Enter your Email: "); email = Console.ReadLine().ToLower(); Console.WriteLine("Enter your password: "); password = Console.ReadLine(); } while (!menuBL.NameValidation(name) || !menuBL.EmailValidation(email)); try { managerService.SignUpManager(name, email, password); } catch (Exception ex) { Console.WriteLine(ex.Message); } }