public async Task <AddPlaceResponse> Handle(AddPlaceRequest request, CancellationToken cancellationToken)
        {
            var place   = this.mapper.Map <Place>(request);
            var command = new AddPlaceCommand()
            {
                Parameter = place
            };
            var placeFromDb = await this.commandExecutor.Execute(command);

            return(new AddPlaceResponse()
            {
                Data = this.mapper.Map <Domain.Models.Place>(placeFromDb)
            });
        }
 public PlaceInputViewModel(Place newPlace, IPlaceService placeService, ICountryService countryService, ILogging logger, Window window)
 {
     PlaceService   = placeService;
     CountryService = countryService;
     Logger         = logger;
     Window         = window;
     NewPlace       = newPlace;
     if (NewPlace.IsValid())
     {
         SavePlaceCommand = new UpdatePlaceCommand(this);
     }
     else
     {
         SavePlaceCommand = new AddPlaceCommand(this);
     }
     InitCountries();
 }