Exemple #1
0
        public async Task <PropertyResponse> Handle(UpdatePropertyCommand request, CancellationToken cancellationToken)
        {
            var property = await _propertiesService.GetPropertyByIdAsync(request.Id);

            _mapper.Map(request, property);

            await _propertiesService.UpdatePropertyAsync(property);

            return(_mapper.Map <PropertyResponse>(property));
        }