// The return type can be changed to IEnumerable, however to support // paging and sorting, the following parameters must be added: // int maximumRows // int startRowIndex // out int totalRowCount // string sortByExpression public List <HOA_DON> HoaDonLoadGrid_GetData() { hoaDonDAL dAL = new hoaDonDAL(); var items = dAL.GetList(); return(items); }
protected void btn_Delete_Click(object sender, EventArgs e) { hoaDonDAL dAL = new hoaDonDAL(); int id = Convert.ToInt32((sender as LinkButton).CommandArgument); int kq = dAL.Delete(id); lb_messenger.Visible = true; if (kq != 0) { lb_messenger.Text = "Xóa Thành Công"; } Page.Response.Redirect(Page.Request.Url.ToString(), true); }
public hoaDonBUS() { hdDAL = new hoaDonDAL(); }