Esempio n. 1
0
        public async Task <Messages> DeleteByIdsAsync(int roleId, IList <int> userIds, UserClaimModel userClaim)
        {
            if (roleId > 0 && userIds != null && userIds.Count > 0)
            {
                bool result = await roleUserRepository.DeleteByIdsAsync(roleId, userIds);

                messages.Msg     = result ? "删除成功!!" : "删除失败!!";
                messages.Success = result;
                await logService.AddLogAsync(OperatorLogEnum.Delete, string.Format("批量移除角色编号为:{0}的用户编号为{1}{2}", roleId, string.Join(",", userIds), messages.Msg), userClaim.UserId, userClaim.UserName);
            }
            return(messages);
        }