public ActionResult Refund(PaymentData payment) { RefundService.RefundServiceClient localServiceProxy = new RefundService.RefundServiceClient(); int staffID = localServiceProxy.GetStaffID(HttpContext.User.Identity.Name); string info = localServiceProxy.RefundPayment(payment.ID, payment.customerID, staffID, payment.rentalID, -1 * (payment.Amount), payment.PaymentDate, payment.FilmTitle); //cause a redirectaction here return(RedirectToAction("PaymentDone")); }
public ActionResult Refund(PaymentData payment) { RefundService.RefundServiceClient localServiceProxy = new RefundService.RefundServiceClient(); int staffID = localServiceProxy.GetStaffID(HttpContext.User.Identity.Name); string info = localServiceProxy.RefundPayment(payment.ID, payment.customerID, staffID, payment.rentalID, -1 * (payment.Amount), payment.PaymentDate, payment.FilmTitle); //cause a redirectaction here return RedirectToAction("PaymentDone"); }