Example #1
0
        /// <summary>
        /// 修改域名
        /// </summary>
        public async Task UpdateAsync(DomainUpdateRequest request)
        {
            var entity = await DomainRepository.FindAsync(request.DomainId);

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

            await UnitOfWork.CommitAsync();
        }