public ActionResult Delete(string[] ids)
        {
            try
            {
                if (ids.IsAny())
                {
                    var genericControlValues =
                        from id in ids
                        select _genericControlValueService.GetById(int.Parse(id));

                    _genericControlValueService.BatchDelete(genericControlValues);
                }
            }
            catch (Exception ex)
            {
                LogText.Log(string.Concat("GenericControlValue.Delete: ", ex.Message));
            }

            return(RedirectToAction("Index"));
        }
        public ActionResult Delete(string[] ids)
        {
            try
            {
                if (ids.Length != 0)
                {
                    var genericControlValues =
                        from id in ids
                        select _genericControlValueService.GetById(int.Parse(id));

                    _genericControlValueService.BatchDelete(genericControlValues);
                }
            }
            catch (Exception exception1)
            {
                var exception = exception1;
                ExtentionUtils.Log(string.Concat("GenericControlValue.Delete: ", exception.Message));
            }
            return(RedirectToAction("Index"));
        }