public void CreateNewAccount() { Console.Clear(); WriteLine("Enter Login."); string log = ReadLine(); WriteLine("Enter Pincode"); string pin = ReadLine(); WriteLine("Holder's Name"); string nam = ReadLine(); WriteLine("Type(Savings, Current)"); string typ = ReadLine(); WriteLine("Starting Balance"); int bal = System.Convert.ToInt32(ReadLine()); WriteLine("Status(active,disabled)"); string stat = ReadLine(); UserBLL bll = new UserBLL(); UserBO obj = new UserBO { Login = log, Pincode = pin, Name = nam, UsrAccNum = 0, Starting_balance = bal, Type = typ, Status = stat }; if (bll.CheckLength(pin)) { UserView v = new UserView(); string msg = bll.Save_User(obj); WriteLine(msg); } else { WriteLine("Account cannot be created Check pincode length (must b 5 characters)"); } }
public void SearchAccount() { UserView v = new UserView(); v.SearchMenu(); }