Пример #1
0
        public async Task <ActionResult> RemoveAdminById(Guid id)    //删除
        {
            IAdminManger adminManger = new AdminManger();
            await adminManger.RemoveAdminById(id);

            return(View());
        }
Пример #2
0
        public async Task <ActionResult> ManyRemoveAdmin(string idStr)       //批量删除部分管理员
        {
            IAdminManger adminManger = new AdminManger();
            string       str         = idStr.Substring(0, idStr.LastIndexOf(','));

            string[] ids = str.Split(',');
            foreach (var item in ids)
            {
                Guid aid = Guid.Parse(item);
                await adminManger.RemoveAdminById(aid);
            }
            return(View());
        }