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

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

            return(this.Id);
        }
示例#2
0
 public List <LoaiCP> GetAllLoaiCP()
 {
     return(DalLoaiCP.GetAllLoaiCP());
 }
示例#3
0
 public void Delete()
 {
     DalLoaiCP.Delete(this);
 }