Example #1
0
        public bool PayService(User user, Service service)
        {
            try
            {
                IEnumerable <PaymentType> payMethods = _adminMgm.GetPayMethods();
                foreach (PaymentType t in payMethods)
                {
                    Console.WriteLine(t.ToString());
                }
                Console.WriteLine("CHOOSE PAY METHOD");
                string p = Console.ReadLine();

                _adminMgm.NewPayment(user, service, (PaymentType)int.Parse(p));
                return(true);
            }
            catch (Exception e)
            {
                Console.WriteLine("PAYMENT PROCESS NOT FINISHED : " + e.Message);
                throw e;
            }
        }