Пример #1
0
        public IActionResult DelCollection(string ids)
        {
            ids = ids.TrimEnd(',');
            int h;

            try
            {
                h = bll.DelCollection(ids);
            }
            catch (Exception ex)
            {
                log.Error(ex.Message);
                throw;
            }

            return(Ok(new { state = h > 0 ? true : false, msg = h > 0 ? "删除成功" : "删除失败" }));
        }