Esempio n. 1
0
        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 + "!"), ""));
        }
Esempio n. 2
0
        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 + "!"), ""));
        }