Is there a way to programmatically direct to a specific HttpPost
Okay, this is completely a newbie question and I apologize ahead of time,
but I can't seem to remember/figure out how to do this...
I have a web app in which I attempt to download invoices to a client's
accounting system. The download request fires off an HttpGet which returns
a PartialViewResult which displays the count and amount of the invoices
selected for download... The current HttpPost returns a FilePathResult
which is the formatted file the client uses to import the invoices into
their system.
I now have a client who wants the file sent through an API which directly
imports the invoices into their system, supplanting the need to return a
file to them.
My question is... Is there a way to direct the HttpGet to either run the
HttpPost FilePathResult or the HttpPost Void (no file returned) without a
bunch of jQuery IF statements on the PartialViewResult page?
Thanks for any suggestions ahead of time. My brain just ain't working
today...
No comments:
Post a Comment