public int Update(CountryModel country) { var countryUpdate = repoCountry.Read(country.ID); if (countryUpdate != null) { countryUpdate.CountryName = country.CountryName; repoCountry.Update(countryUpdate); return(1); } return(0); }
public int Update(CountryModel country) { var countryUpdate = repoCountry.Read(country.ID); if (countryUpdate != null) { countryUpdate.CountryName = country.CountryName; repoCountry.Update(countryUpdate); return(1); } return(0); }