//To Update the records of a particluar SectionList public int UpdateSectionList(SectionList section) { db.Entry(section).State = EntityState.Modified; db.SaveChanges(); return(1); }
//To Delete the record of a particular SectionList public int DeleteSectionList(int id) { SectionList section = db.SectionList.Find(id); db.SectionList.Remove(section); db.SaveChanges(); return(1); }
//To Add new SectionList record public int AddSectionList(SectionList section) { db.SectionList.Add(section); db.SaveChanges(); return(1); }