Beispiel #1
0
        public ActionResult DeleteSystemUser()
        {
            string json = Request["data"];

            if (string.IsNullOrWhiteSpace(json))
            {
                throw new BusinessException("请选择要启用的用户");
            }
            List <int> sysNos = JsonConvert.DeserializeObject <List <int> >(json);

            user_service.DeleteSystemUserBatch(sysNos);
            return(Json(new AjaxResult {
                Success = true, Message = "删除成功"
            }, JsonRequestBehavior.AllowGet));
        }