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);
        }
Exemplo n.º 6
0
 public void UpdateClassFrequency(ClassFrequency classFrequency)
 {
     _classFrequencyDAO.UpdateClassFrequency(classFrequency);
 }
Exemplo n.º 7
0
 public void InsertClassFrequency(ClassFrequency newClassFrequency)
 {
     _classFrequencyDAO.InsertClassFrequency(newClassFrequency);
 }
Exemplo n.º 8
0
 public void DeleteClassFrequency(ClassFrequency classFrequency)
 {
     _classFrequencyDAO.DeleteClassFrequency(classFrequency);
 }