public virtual ActionResult EMDeleteRows(Guid[] checkedRecords) { checkedRecords = checkedRecords ?? new Guid[] { }; try { MetaViewHelper.EMDelete(checkedRecords); } catch (Exception ex) { return(Content(MessageHelper.FormedMessageWarning(ex), "")); } return(Content(MessageHelper.FormedMessageSuccess(Resources.Resource.RowsDeleted + "!"), "")); }
public ActionResult ExternalMethodDeleteRows(Guid[] checkedRecords) { checkedRecords = checkedRecords ?? new Guid[] { }; try { MetaViewHelper.EMDelete(checkedRecords); } catch (NotValidationException ex) { return(Content(MessageHelper.FormedMessageNote(ex.Message), "")); } catch (Exception ex) { return(Content(MessageHelper.FormedMessageWarning(ex), "")); } return(Content(MessageHelper.FormedMessageSuccess(Resources.Resource.RowsDeleted + "!"), "")); }