public async Task <ResultEntity> AddOrUpdateAsync(GroupEditDto editDto) { var group = Mapper.Map <Group>(editDto); var result = await _groupManager.AddOrUpdateAsync(group); if (result.Success) { await _unitOfWork.CommitAsync(); if (editDto.Id > 0) { await _logManager.LogInfomationAsync(EnumLogType.Audit, LogTitleConstString.GroupEdit, $"【{editDto.Name}】", JsonConvert.SerializeObject(group), editDto.CreateBy); } else { await _logManager.LogInfomationAsync(EnumLogType.Audit, LogTitleConstString.GroupAdd, $"【{editDto.Name}】", JsonConvert.SerializeObject(group), editDto.CreateBy); } } return(result); }