Ejemplo n.º 1
0
		public ActionResult SetPaid(int orderId)
		{
			var paidDate = _orderFulfillmentService.SetPaid(orderId);
			CommitProviderInstance.Commit();
			var message = _orderFulfillmentService.GetOrderPaidHistoryMessage(typeof(Order), orderId, "OrderStatusId");
			var viewModel = new UpdateOrderPaymentViewModel { PaidDate = paidDate, HistoryMessage = message };
			return PartialView("PaymentSection", viewModel);
		}
Ejemplo n.º 2
0
		public ActionResult RejectPayment(int orderId)
		{
			var newSatus = _orderFulfillmentService.RejectPayment(orderId);
			CommitProviderInstance.Commit();
			var viewModel = new UpdateOrderPaymentViewModel { OrderStatus = newSatus, PaidDate = null};
			return PartialView("PaymentSection", viewModel);
		}