예제 #1
0
 /// <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));
     }
 }
예제 #2
0
 public ActionResult Delete(FormCollection _form)
 {
     return((ActionResult)nc.Delete(Request)["view"]);
     //return null;
 }