public HttpError Process(Request request) => Invoice.ActiveCount(_user) > _limit ? new HttpError(HttpStatusCode.Forbidden, "User has too many active invoices") : null;
public static bool ActiveInvoiceExists(User user, int entityId, EntityType type) => Invoice.ActiveCount(user, entityId, type) > 0;