コード例 #1
0
        /// <summary>
        /// 修改代理
        /// </summary>
        public async Task UpdateAsync(AgentUpdateRequest request)
        {
            var entity = await AgentRepository.FindAsync(request.Id);

            request.MapTo(entity);
            await AgentRepository.UpdateAsync(entity);

            await UnitOfWork.CommitAsync();
        }