VideoRentalService.RentalService.RefundT C# (CSharp) 메소드

RefundT() 공개 메소드

public RefundT ( int staffid, int customerid, double paymentAmount, string creditcardno, string expiry, string cvv ) : int
staffid int
customerid int
paymentAmount double
creditcardno string
expiry string
cvv string
리턴 int
        public int RefundT(int staffid, int customerid, double paymentAmount, string creditcardno, string expiry, string cvv)
        {
            //return string.Format("{0}:{1}:{2}:{3}:{4}:{5}",staffid, customerid, paymentAmount, creditcardno, expiry, cvv) ;
            int tID = -1;
            try
            {
                CreditCardServiceClient cc = new CreditCardServiceClient();
                tID = cc.Credit(creditcardno, paymentAmount);
                return tID;
            }
            catch (Exception e)
            {
            }
            return tID;
        }