public ActionResult UpdateCityMunicipality(Guid id, CityMunicipalityUpdateDto citymunicipalityUpdateDto) { var existingdata = _repo.GetCityMunicipalityById(id); if (existingdata == null) { return(NotFound()); } _mapper.Map(citymunicipalityUpdateDto, existingdata); _repo.UpdateCityMunicipality(existingdata); _repo.SaveChanges(); return(NoContent()); }