예제 #1
0
 internal async Task <int> SaveAssetCollection(AssetCollection assetCollection)
 {
     try
     {
         List <SQLParam> sqlParam = new List <SQLParam>
         {
             new SQLParam("@PageName", assetCollection.PageName),
             new SQLParam("@RoleName", assetCollection.RoleName),
             new SQLParam("@Name", assetCollection.Name),
             new SQLParam("@Csslink", assetCollection.CssLink),
             new SQLParam("@JSHeaderLink", assetCollection.JSHeaderLink),
             new SQLParam("@JSFooterLink", assetCollection.JSFooterLink),
         };
         SQLExecuteNonQueryAsync sqlHandler = new SQLExecuteNonQueryAsync();
         return(await sqlHandler.ExecuteNonQueryAsync("[usp_Webbuilder_AssestCollection_AddUpdate]", sqlParam));
     }
     catch
     {
         throw;
     }
 }
예제 #2
0
 public async Task<int> SaveAssetCollection(AssetCollection assetCollection)
 {
     BundleDataProvider bundleDataProvider = new BundleDataProvider();
     return await bundleDataProvider.SaveAssetCollection(assetCollection);
 }