示例#1
0
        public async Task <ResultEntity> AssignObject(int boxId, List <int> objectIds, int operatorId)
        {
            var result = await _boxManager.AssignObject(boxId, objectIds);

            if (result.Success)
            {
                await _unitOfWork.CommitAsync();

                await _logManager.LogInfomationAsync(EnumLogType.Audit, LogTitleConstString.BoxObjectAssign, result.Message,
                                                     JsonConvert.SerializeObject(result.Data), operatorId);
            }

            return(result);
        }