/// <summary> /// /// </summary> /// <param name="sender"></param> /// <param name="directEventArgs"></param> protected void Delete(object sender, DirectEventArgs directEventArgs) { try { if (!int.TryParse(hdfKeyRecord.Text, out var id) || id <= 0) { return; } AssetController.Delete(id); gridAsset.Reload(); RM.RegisterClientScriptBlock("Grid_Reload", "ReloadGrid();"); } catch (Exception ex) { Dialog.Alert("Có lỗi xảy ra trong quá trình xóa: {0}".FormatWith(ex.Message)); } }
public ActionResult Delete(FormCollection _form) { return((ActionResult)nc.Delete(Request)["view"]); //return null; }