예제 #1
0
        /// <summary>
        /// 修改操作
        /// </summary>
        /// <param name="request">请求</param>
        public async Task UpdateAsync(UpdateOperationRequest request)
        {
            var operation = await OperationRepository.FindAsync(request.Id.ToGuid());

            request.MapTo(operation);
            await ValidateUpdateAsync(operation);

            operation.InitPinYin();
            await OperationRepository.UpdateAsync(operation);

            await UnitOfWork.CommitAsync();
        }