public void Delete(Course entity)
        {
            if (entitieContext.Entry(entity).State == EntityState.Detached)
            {
                entitieContext.Set<Course>().Attach(entity);
            }

            entitieContext.Set<Course>().Remove(entity);
        }
 public void Update(Course entity)
 {
     entitieContext.Set<Course>().Attach(entity);
     entitieContext.Entry(entity).State = EntityState.Modified;
 }
 public Course Insert(Course entity)
 {
     entitieContext.Set<Course>().Add(entity);
     return entity;
 }