public IActionResult PatchCity([FromBody] City city) { if (!ModelState.IsValid) { return(BadRequest()); } var cityToReturn = Mapper.Map <City>(city); _repository.PatchCity(cityToReturn); return(Ok(city)); }