示例#1
0
        public int Save()
        {
            if (Id == -1)
            {
                DalDiaDiem.Insert(this);
            }

            if (updated)
            {
                DalDiaDiem.Update(this);
            }

            return(this.Id);
        }
示例#2
0
 public void Delete()
 {
     DalDiaDiem.Delete(this);
 }
示例#3
0
 public Boolean KiemtraXoa()
 {
     return(DalDiaDiem.KiemtraXoa(this));
 }