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)); }
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)); }
public bool XoaBanCoKhach(BanCoKhach ban) { return(bck.XoaBanCoKhach(ban)); }
public bool ThemBanCoKhach(BanCoKhach ban) { return(bck.ThemBanCoKhach(ban)); }