public void delete(string action) { if (action == "1") { string ID = Request.QueryString["rowid"]; NineOrchidBLL.GedungBLL bll = new NineOrchidBLL.GedungBLL(); SortedList sl = new SortedList(); sl.Add("@idxGedung-int", ID); bll.Delete(sl); } else if (action == "2") { string ID = Request.QueryString["rowid"]; NineOrchidBLL.KamarBLL bll = new NineOrchidBLL.KamarBLL(); SortedList sl = new SortedList(); sl.Add("@idxKamar-varchar-10", ID); bll.Delete(sl); } else if (action == "3") { string ID = Request.QueryString["rowid"]; NineOrchidBLL.PerusahaanBLL bll = new NineOrchidBLL.PerusahaanBLL(); SortedList sl = new SortedList(); sl.Add("@idxPerusahaan-INT", ID); bll.Delete(sl); } else if (action == "4") { string ID = Request.QueryString["rowid"]; NineOrchidBLL.KerabatBLL bll = new NineOrchidBLL.KerabatBLL(); SortedList sl = new SortedList(); sl.Add("@idxKerabat-INT", ID); bll.Delete(sl); } else if (action == "5") { string ID = Request.QueryString["rowid"]; NineOrchidBLL.PenghuniBLL bll = new NineOrchidBLL.PenghuniBLL(); SortedList sl = new SortedList(); sl.Add("@idxPenghuni-INT", ID); bll.Delete(sl); } }