public void WithDrawCash(UserO usr, ref bool MaxAmount, ref DateTime tomorrow) { TransactionBLL tll = new TransactionBLL(); DateTime today = DateTime.UtcNow.Date; if (today == tomorrow) { MaxAmount = false; } if (tll.Is24Hours(usr)) { MaxAmount = false; } if (MaxAmount) { WriteLine("You cannot withdraw more than 20000 in one day.Please wait for 24 hours."); return; } Console.Clear(); WriteLine("1---Fast Cash"); WriteLine("2---Normal cash"); int num = System.Convert.ToInt32(ReadLine()); if (num == 1) { FastCash(usr, ref MaxAmount); } else if (num == 2) { NormalCash(usr, ref MaxAmount); } }