void gvABM_RowDeleting(object sender, DevExpress.Web.Data.ASPxDataDeletingEventArgs e) { e.Cancel = true; CRUDHelper.Delete(Convert.ToInt32(e.Keys[0]), BusinessMapper.GetDaoByEntity(BusinessMapper.eEntities.FrecuenciaDet)); RefreshAbmGrid(gvABM); }
protected void btnDelete_Click(object sender, EventArgs e) { try { if (pnlControls.Attributes["RecId"] != null) { CRUDHelper.Delete(Convert.ToInt32(pnlControls.Attributes["RecId"]), BusinessMapper.GetDaoByEntity(BusinessMapper.eEntities.EspacioCont)); pnlControls.Visible = false; RefreshGrid(gv); } } catch (Exception ex) { FormsHelper.MsgError(lblError, ex); } }
private void Delete(int id) { CRUDHelper.Delete(id, dao); }