コード例 #1
0
 internal async Task <int> DeletePage(DeletePage deletePage)
 {
     try
     {
         List <SQLParam> sqlParam = new List <SQLParam>
         {
             new SQLParam("@PageID", deletePage.PageID),
             new SQLParam("@UserName", deletePage.UserName)
         };
         SQLExecuteNonQueryAsync sqlHelper = new SQLExecuteNonQueryAsync();
         return(await sqlHelper.ExecuteNonQueryAsync("[usp_WebBuilder_Page_delete]", sqlParam));
     }
     catch
     {
         throw;
     }
 }
コード例 #2
0
        public async Task <int> DeletePage(DeletePage deletePage)
        {
            WebBuilderDataProvider objDataProvider = new WebBuilderDataProvider();

            return(await objDataProvider.DeletePage(deletePage));
        }