public void UpdatePool(PoolDB pool)
        {
            PoolDB p = GetPool(pool.PoolID);

            p.PoolName      = pool.PoolName;
            p.KulvarNo      = pool.KulvarNo;
            p.AgeInfo       = pool.AgeInfo;
            p.Limit         = pool.Limit;
            p.BookingStatus = pool.BookingStatus;
            p.DayInfo       = pool.DayInfo;
            p.Degree        = pool.Degree;
            p.TimePeriod    = pool.TimePeriod;
            context.SaveChanges();
        }
 public void AddPool(PoolDB pool)
 {
     this.context.PoolDB.Add(pool);
     this.context.SaveChanges();
 }
 public void DeletePool(PoolDB p)
 {
     this.context.PoolDB.Remove(p);
     this.context.SaveChanges();
 }