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