Hi, I have the following code
public async Task UpdateAsync(int productId, string email) { var product = await GetAsync(productId); if (product.Owner != email) { throw new AuthenticationException($"You are not authorized to update product"); } }
I would like to verify that if product.Owner != email then AuthenticationException is throwen
Regards