public async Task <ActionResult <City> > PostCity(CityDto city) { var cityId = await _cityManager.CreateAsync(city); if (cityId < 0) { return(BadRequest()); } city.Id = cityId; return(CreatedAtAction("GetCity", new { id = cityId }, city)); }