Exemplo n.º 1
0
 public void UpdateAppWithTemplate(VaultAppVaultTemplate appWithTemplate)
 {
     if (appWithTemplate == null)
     {
         throw new ArgumentNullException("appWithTemplate");
     }
     _apptempRepo.Update(appWithTemplate);
 }
Exemplo n.º 2
0
        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);
        }