Exemplo n.º 1
0
        //To Update the records of a particluar SectionList
        public int UpdateSectionList(SectionList section)
        {
            db.Entry(section).State = EntityState.Modified;
            db.SaveChanges();

            return(1);
        }
Exemplo n.º 2
0
        //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);
        }
Exemplo n.º 3
0
 //To Add new SectionList record
 public int AddSectionList(SectionList section)
 {
     db.SectionList.Add(section);
     db.SaveChanges();
     return(1);
 }