コード例 #1
0
        public bool XoaBanCoKhach(BanCoKhach ban)
        {
            string[] param  = { "@MaBan" };
            object[] values = { ban.MaBan };
            string   query  = "Delete from tblBanCoKhach where MaBan=@MaBan";

            return(db.ExecuteNonQueryPara(query, param, values));
        }
コード例 #2
0
        public bool ThemBanCoKhach(BanCoKhach ban)
        {
            string[] param  = { "@MaBan", "@SoBan" };
            object[] values = { ban.MaBan, ban.SoBan };
            string   query  = "Insert into tblBanCoKhach(MaBan,SoBan) values(@MaBan,@SoBan)";

            return(db.ExecuteNonQueryPara(query, param, values));
        }
コード例 #3
0
 public bool XoaBanCoKhach(BanCoKhach ban)
 {
     return(bck.XoaBanCoKhach(ban));
 }
コード例 #4
0
 public bool ThemBanCoKhach(BanCoKhach ban)
 {
     return(bck.ThemBanCoKhach(ban));
 }