public async Task Update(int id, CityModel cityModel) { var city = _mapper.Map <City>(cityModel); _dbContext.City.Update(city); await _dbContext.SaveChangesAsync(); }
public async Task Update(int id, CountryModel countryModel) { var country = _mapper.Map <Country>(countryModel); _dbContext.Country.Update(country); await _dbContext.SaveChangesAsync(); }