Example #1
0
        public async Task <MessageModel <string> > DeleteAll(string ids)
        {
            var data = new MessageModel <string>();

            if (!string.IsNullOrEmpty(ids))
            {
                var arr = ids.Split(",");
                data.success = await _roleServices.DeleteByIds(arr);

                if (data.success)
                {
                    data.msg = "删除成功";
                }
            }

            return(data);
        }