You are here: RainWorx.FrameWorx.MVC Namespaces > RainWorx.FrameWorx.MVC.Controllers > AccountController Class > RemoveLineItem Method

AccountControllerRemoveLineItem Method

AuctionWorx 3.5 API
Processes request to remove a line item from an invoice

Namespace:  RainWorx.FrameWorx.MVC.Controllers
Assembly:  RainWorx.FrameWorx.MVC (in RainWorx.FrameWorx.MVC.dll) Version: 3.5

Syntax

C#
public ActionResult RemoveLineItem(
	int lineItemID,
	int invoiceID,
	string returnUrl
)

Parameters

lineItemID
Type: SystemInt32
ID of the line item to be removed
invoiceID
Type: SystemInt32
ID of the invoice to be updated
returnUrl
Type: SystemString
Return Url passed to invoice detail view

Return Value

Type: ActionResult
Redirect to invoice detail view, or "returnUrl" if invoice was deleted.
Remarks

If the invoice was deleted because the last line item was removed, the user is redirected to "returnUrl". If "returnUrl" is null or empty, the user is redirected based on the context. For fee invoices, redirect to /Account/Fees. Otherwise, if the user is the invoice owner, redirect to /Account/Invoice/Sales. Otherwise, redirect to /Account/Invoice/Purchases.
See Also

Reference

Copyright © 2002-2022. RainWorx Software. All rights reserved.