public IActionResult Put(int id, [FromBody] UpdateLocationModel updateModel)
        {
            var updateCommand = new UpdateLocationCommand()
            {
                LocationId = id
            };

            _mapper.Map <UpdateLocationModel, UpdateLocationCommand>(updateModel, updateCommand);

            var result = _locationService.UpdateLocation(updateCommand);

            return(CreateResponse <Location, LocationModel>(result));
        }
        public IActionResult Put(int id, [FromBody] UpdateLocationModel updateModel)
        {
            var updateCommand = new UpdateLocationCommand()
            {
                LocationId = id
            };

            this.mapper.Map <UpdateLocationModel, UpdateLocationCommand>(updateModel, updateCommand);

            Location location = this.locationService.UpdateLocation(updateCommand);

            var model = this.mapper.Map <Location, LocationModel>(location);

            return(this.Ok(model));
        }