/// <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(); }