Exemplo n.º 1
0
        /// <summary>
        /// 删除一个会员
        /// </summary>
        /// <returns></returns>
        public ActionResult DeleteUserAdminInfo()
        {
            ViewData["deptSelectItems"] = GetdeptSelectItems();
            string ids = Request["UsersId"];

            try
            {
                string strwhere = "and id in(" + ids + ")";
                Business.Sys_UserAdmin Sys_UserAdmin = new Business.Sys_UserAdmin();
                List <Model.UserAdmin> list          = Sys_UserAdmin.GetUserAdminList(strwhere);
                foreach (var item in list)
                {
                    Sys_UserAdmin.DeleteUserAdminInfo(item.ID);
                }
                return(Content("True"));
            }
            catch (Exception ex)
            {
                return(Content("False"));
            }
        }