public void EditCountry(Country country) { var countryToEdit = GetCountry(country.CountryId); if (countryToEdit == null) return; countryToEdit.Name = country.Name; _db.SaveChanges(); }
public ActionResult Create(Country country) { try { _countryManager.CreateCountry(country); return RedirectToAction("Index"); } catch { return View(); } }
public void CreateCountry(Country country) { _db.Countries.Add(country); _db.SaveChanges(); }
public void EditCountry(Country Country) { _countryRepository.EditCountry(Country); }
public void CreateCountry(Country Country) { _countryRepository.CreateCountry(Country); }
public void EditCountry(Country Country) { _countryHandler.EditCountry(Country); }
public void CreateCountry(Country Country) { _countryHandler.CreateCountry(Country); }