Example #1
0
 public async Task InsertAsync()
 {
     var apiResource = new ApiResource("测试", new List<string>() { "ApiName", "ApiDec" });
     int id = await repository.GetIdAsync("测试");
     if (id == 0)
     {
         var data = await repository.InsertAsync(apiResource);
     }
 }