Say you wrap the entity framework DbContext
SaveChangesAsync()
. So the original method returns Task<int>
.
So when wrapped, is there any difference between:
public Task<int> SaveChangesAsync()
{
return dbContext.SaveChangesAsync();
}
and
public async Task<int> SaveChangesAsync()
{
return await dbContext.SaveChangesAsync();
}