// delete the record identified by the specified ID public bool Delete(int ID) { Fpp.Data.Organisation org = new Fpp.Data.Organisation(ModuleSettings); return org.Delete(ID); }
// update the news identified by the specified ID public bool Update(int newsID, string title, string body, DateTime releaseDate, DateTime expireDate, bool approved) { Fpp.Data.Organisation org = new Fpp.Data.Organisation(ModuleSettings); return org.Update(newsID, title, body, releaseDate, expireDate, approved); }
// add a news public int Add(string orgName) { Fpp.Data.Organisation org = new Fpp.Data.Organisation(ModuleSettings); return org.Add(orgName); }