Exemplo n.º 1
0
        public void Delete(int id)
        {
            Lections lection = db.Lections.Find(id);

            if (lection != null)
            {
                db.Lections.Remove(lection);
            }
        }
Exemplo n.º 2
0
 public void Update(Lections lection)
 {
     db.Entry(lection).State = EntityState.Modified;
 }
Exemplo n.º 3
0
 public void Create(Lections lection)
 {
     db.Lections.Add(lection);
 }