3
I am creating an asynchronous method for sending Emails from the opening or changing of the object, but when calling the method of sending email I have to put the await in front and the return of the method has to be async Task, however while doing this in the controller of my application I have to call the method also with await in front and put the return of the action async Task
I would like to know if this is the ideal way to use the asynchronous method.
What have you done? Show me where you’re having trouble.
– Maniero
I’ll put the code, but it’s not presenting problems, I just wanted to know if the form I did, that in the end the return of Actionresult turns Task<Actionresult> is correct.
– Anderson Souza