public int LoaiDocGia_Xoa(LoaiDGDTO dgDTO) {
            try {
                connect = new ConnectionData();
                int Nparamater = 1;
                string[] name=new string[Nparamater];
                object[] values=new object[Nparamater];
                name[0] = "@MaLDG";
                values[0] = dgDTO.MaLDG;
                return connect.UpdateData("LoaiDocGia_Xoa",name,values,Nparamater);

            }catch(SqlException ex){
                throw ex;
            }
        }
 public DataTable LoaiDG_LoadDuLieuCotMaLDG(LoaiDGDTO ldgDTO)
 {
     try
     {
         connect = new ConnectionData();
         int Nparamater = 1;
         string[] name = new string[Nparamater];
         object[] value = new object[Nparamater];
         name[0] = "@maldg";
         value[0] = ldgDTO.MaLDG;
         return connect.GetData("LoaiDocGia_LoadDuLieuCotMaLDG", name, value, Nparamater);
     }
     catch (SqlException ex)
     {
         throw ex;
     }
 }
        public int nhapLDG(LoaiDGDTO ldgDTO)
        {
            try
            {
                connect = new ConnectionData();
                int Nparamater = 2;
                string[] name = new string[Nparamater];
                object[] value = new object[Nparamater];
                name[0] = "@maldg";
                value[0] = ldgDTO.MaLDG;
                name[1] = "@tenldg";
                value[1] = ldgDTO.TenLDG;

                return connect.UpdateData("loaiDocGia_InsertUpdate", name, value, Nparamater);
            }
            catch (SqlException ex)
            {
                throw ex;
            }
        }
 public int LoaiDocGia_Xoa(LoaiDGDTO ldgDTO) {
     return ldgDAL.LoaiDocGia_Xoa(ldgDTO);
 }
 public int nhapLDG(LoaiDGDTO ldgDTO) {
     return ldgDAL.nhapLDG(ldgDTO);
 }
 public DataTable LoaiDocGia_LoadDuLieuCotMaLDG(LoaiDGDTO ldgDTO)
 {
     return ldgDAL.LoaiDG_LoadDuLieuCotMaLDG(ldgDTO);
 }