コード例 #1
0
ファイル: VaultAppService.cs プロジェクト: weijx-xa/test
 public void UpdateAppWithTemplate(VaultAppVaultTemplate appWithTemplate)
 {
     if (appWithTemplate == null)
     {
         throw new ArgumentNullException("appWithTemplate");
     }
     _apptempRepo.Update(appWithTemplate);
 }
コード例 #2
0
ファイル: VaultAppService.cs プロジェクト: weijx-xa/test
        public void InsertAppWithTemplate(VaultAppVaultTemplate appWithTemplate)
        {
            if (appWithTemplate == null)
            {
                throw new ArgumentNullException("appWithTemplate");
            }
            var app0 = GetAppWithTemplate(appWithTemplate.VaultTemplateId, appWithTemplate.VaultAppId);

            if (app0 != null)
            {
                return;
            }
            _apptempRepo.Insert(appWithTemplate);
        }