public void UpdateClassFrequency(ClassFrequency classFrequency) { using (EntityModel em = new EntityModel()) { em.Entry(classFrequency).State = System.Data.Entity.EntityState.Modified; em.SaveChanges(); } }
public void InsertClassFrequency(ClassFrequency newClassFrequency) { using (EntityModel em = new EntityModel()) { em.ClassFrequency.Add(newClassFrequency); em.SaveChanges(); } }
public void DeleteClassFrequency(ClassFrequency classFrequency) { using (EntityModel em = new EntityModel()) { em.ClassFrequency.Remove(classFrequency); em.SaveChanges(); } }
public async Task <ClassFrequency> FindClassFrequencyAsync(long classFrequencyId) { ClassFrequency classFrequency = null; using (EntityModel em = new EntityModel()) { classFrequency = await em.ClassFrequency.FindAsync(classFrequencyId); } return(classFrequency); }
public ClassFrequency FindClassFrequency(long classFrequencyId) { ClassFrequency classFrequency = null; using (EntityModel em = new EntityModel()) { classFrequency = em.ClassFrequency.Find(classFrequencyId); } return(classFrequency); }
public void UpdateClassFrequency(ClassFrequency classFrequency) { _classFrequencyDAO.UpdateClassFrequency(classFrequency); }
public void InsertClassFrequency(ClassFrequency newClassFrequency) { _classFrequencyDAO.InsertClassFrequency(newClassFrequency); }
public void DeleteClassFrequency(ClassFrequency classFrequency) { _classFrequencyDAO.DeleteClassFrequency(classFrequency); }