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; } }
public async Task <int> DeletePage(DeletePage deletePage) { WebBuilderDataProvider objDataProvider = new WebBuilderDataProvider(); return(await objDataProvider.DeletePage(deletePage)); }