Exemplo n.º 1
0
        public int Save()
        {
            if (Id == -1)
            {
                DalLoaiCP.Insert(this);
            }

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

            return(this.Id);
        }
Exemplo n.º 2
0
 public List <LoaiCP> GetAllLoaiCP()
 {
     return(DalLoaiCP.GetAllLoaiCP());
 }
Exemplo n.º 3
0
 public void Delete()
 {
     DalLoaiCP.Delete(this);
 }