Exemplo n.º 1
0
        public ActionResult Delete(string[] ids)
        {
            try
            {
                if (ids.Length != 0)
                {
                    var systemSettings =
                        from id in ids
                        select _systemSettingService.GetById(int.Parse(id));

                    _systemSettingService.BatchDelete(systemSettings);
                }
            }
            catch (Exception ex)
            {
                LogText.Log(Concat("SystemSetting.Delete: ", ex.Message));
            }

            return(RedirectToAction("Index"));
        }