I am calling a controller action to check the customer serial number before allowing him/her to open a ticket on Zendesk (we need to check if the customer maintenance contract is active). Below you can find the code.
- How can I open the URL from the controller action?
- What
ActionResult
do I need to return afterward?
Thanks.
public ActionResult OpenTicket(string serialNumber, string version)
{
if (customerSubscription.IsExpired == false)
{
// need to open this URL
// https://devdept.zendesk.com/tickets/new?ticket[fields[111111]]=" + serialNumber + "&ticket[fields[222222]]=" + version);
}
else
{
// display an error page with upsell options
}
}