Beispiel #1
0
        public async Task <PropertyResponse> Handle(CreatePropertyCommand request, CancellationToken cancellationToken)
        {
            var property = _mapper.Map <Property>(request);

            await _propertiesService.CreatePropertyAsync(property);

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