Пример #1
0
        public async Task <Unit> Handle(UpdateAddressCommand request, CancellationToken cancellationToken)
        {
            //maping
            var addressModel = new Address()
            {
                Name = request.Name, City = request.City, Street = request.Street
            };

            await _addressRepo.UpdateOne(x => x.Id == request.Id, addressModel);

            return(Unit.Value);
        }