コード例 #1
0
 public HttpError Process(Request request)
 => Invoice.ActiveCount(_user) > _limit
         ? new HttpError(HttpStatusCode.Forbidden, "User has too many active invoices")
         : null;
コード例 #2
0
ファイル: InvoiceUtils.cs プロジェクト: gitcomteam/gitcom-api
 public static bool ActiveInvoiceExists(User user, int entityId, EntityType type)
 => Invoice.ActiveCount(user, entityId, type) > 0;