In my MVC 3 Razor application, an ActionResult Create() method in the Controller handles a user HttpPost. At that point:
- Data is saved to a database.
- Emails are sent to interested parties using another project in the solution.
- A Confirmation page is served back to the user.
Since emailing is the most time-consuming activity, I'm attempting to use SmtpClient.SendAsync(), rather than SmtpClient().Send.
Is this scenario possible if inheritance is from AsyncController? Can anyone provide an example?
Thanks,
Arnold