Is there a difference between calling a method of service with async/await:
[HttpPost]
public async Task<SmthResponce> AddSmth([FromBody] SmthRequest smthRequest)
{
return await smthsService.AddSmthAsync(smthRequest);
}
and without:
[HttpPost]
public Task<SmthResponce> AddSmth([FromBody] SmthRequest smthRequest)
{
return smthsService.AddSmthAsync(smthRequest);
}
AddSmthAsync. However, I assume they typically shouldn't have any effect for Web API.