public decimal GetDiscountPrice(Product p) { if (_authorizer.IsAuthorized()) { return(_baseQuery.GetDiscountPrice(p)); } throw new UnauthorizedException("user not authorized to get discount"); }
public decimal GetDiscountPrice(Product p) { if (_authorizer.IsAuthorized()) { return(_baseQuery.GetDiscountPrice(p)); } throw new UnauthorizedException("user not authorized to get discount"); }