public async Task <ActionResult <CityDto> > Post(int cityId, TemperatureDto temperatureDto) { if (cityId != temperatureDto.CityId) { return(BadRequest()); } var cityDto = await _temperatureService.Modify(temperatureDto); return(CreatedAtAction("Get", new { cityId = cityDto.Id }, cityDto)); }