Having issues with trying to find information on making multiple Context Menus with "delete" and "create". Right now I've created a Tasks class; that implements the ITaskReturnUrl;
public bool Delete() {
umbraco.BusinessLogic.Application.SqlHelper.ExecuteNonQuery("delete from [Persons] WHERE PersonID = @id", umbraco.BusinessLogic.Application.SqlHelper.CreateParameter("@id", ParentID));
return true; }
public bool Save() {
//executed during create... int IdReturned = umbraco.BusinessLogic.Application.SqlHelper.ExecuteScalar<int> ("INSERT INTO [Persons] ([PersonName] ,[PersonID]) VALUES (@title, 1) Select @@Identity", umbraco.BusinessLogic.Application.SqlHelper.CreateParameter("@title", Alias));
Multiple Actions
Having issues with trying to find information on making multiple Context Menus with "delete" and "create". Right now I've created a Tasks class; that implements the ITaskReturnUrl;
public bool Delete()
{
umbraco.BusinessLogic.Application.SqlHelper.ExecuteNonQuery("delete from [Persons] WHERE PersonID = @id", umbraco.BusinessLogic.Application.SqlHelper.CreateParameter("@id", ParentID));
return true;
}
public bool Save()
{
//executed during create...
int IdReturned = umbraco.BusinessLogic.Application.SqlHelper.ExecuteScalar<int>
("INSERT INTO [Persons] ([PersonName] ,[PersonID]) VALUES (@title, 1) Select @@Identity", umbraco.BusinessLogic.Application.SqlHelper.CreateParameter("@title", Alias));
_returnUrl = "plugins/edit.aspx?id=" + IdReturned;
return true;
}
How can I call one for multiple tree roots ?
ie. Events Create/Delete, Locations Create/Delete
is working on a reply...