public async Task <PeopleInternetInformationDto> UpdatePeopleInternetInformationAsync(UpdatePeopleInternetInformationRequestDto request, string userName)
        {
            _logger.LogDebug($"Update internet information with ID {request.Id}. Request {JsonConvert.SerializeObject(request)}");

            await _updateValidator.ValidateAndThrowAsync(request);

            var entity = await _dbContext.PeopleInternetInformations.SingleOrDefaultAsync(x => x.Id == request.Id);

            if (entity == null)
            {
                _logger.LogError($"Cannot find people internet information with ID {request.Id}");
                return(null);
            }

            _mapper.Map(request, entity);
            entity.LastUpdatedDate     = DateTime.Now;
            entity.LastUpdatedUserName = userName;

            _dbContext.Update(entity);
            await _dbContext.SaveChangesAsync();

            return(_mapper.Map <PeopleInternetInformationDto>(entity));
        }
 public async Task <PeopleInternetInformationDto> UpdatePeoppleInternetInformationAsync(UpdatePeopleInternetInformationRequestDto request)
 {
     return(await _peopleInternetInformationService.UpdatePeopleInternetInformationAsync(request, Account?.FullName));
 }