In my MVC 3 Razor application, the ActionResult Create () method in the controller handles the custom HttpPost. In this moment:
- Data is stored in a database.
- Letters are sent to interested parties using another project in the solution.
- The confirmation page is returned to the user.
Since email is the most time consuming, I am trying to use SmtpClient.SendAsync () rather than SmtpClient (). Submit .
Is this scenario possible if inheritance comes from AsyncController? Can anyone provide an example?
Thanks,
Arnold
Arnold
source share