Пример #1
0
 /// <summary>
 /// 验证修改Api资源
 /// </summary>
 private async Task ValidateUpdateAsync(ApiResource entity)
 {
     entity.CheckNull(nameof(entity));
     if (await ApiResourceRepository.CanUpdateAsync(entity) == false)
     {
         ThrowUriRepeatException(entity);
     }
 }