public void Add(C entity)
 {
     DbContext.Set <C>().Add(entity);
 }
        public GenericRepository(DbContext context)

        {
            DbContext = context as BAISTGolfCourseDbContext;
            DbSet     = DbContext.Set <C>();
        }