VideoRentalService.RentalService.RefundT C# (CSharp) Method

RefundT() public method

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
return 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;
        }