public DataSet GetOrganisation(int OrgID) { Data.Organisation org = new Data.Organisation(_moduleSettings); return org.GetOrganisation(OrgID); }
// update the news identified by the specified ID public bool Update(int newsID, string title, string body, DateTime releaseDate, DateTime expireDate, bool approved) { Data.Organisation org = new Data.Organisation(_moduleSettings); return org.Update(newsID, title, body, releaseDate, expireDate, approved); }
// delete the record identified by the specified ID public bool Delete(int ID) { Data.Organisation org = new Data.Organisation(_moduleSettings); return org.Delete(ID); }
// add a news public int Add(string orgName) { Data.Organisation org = new Data.Organisation(_moduleSettings); return org.Add(orgName); }
public Task Update(Data.Organisation organisation) { throw new NotImplementedException(); }
public async Task Create(Data.Organisation organisation) { await _context.Organisations.AddAsync(organisation); }
public void UpdateOrganisation(Data.Organisation organisation) { _container.Organisations.Attach(organisation); _container.SetStateForEntity(organisation, System.Data.Entity.EntityState.Modified); }