public CityDto GetCityByID(int InputId) { CityDto result = _Cities.FirstOrDefault((CityDto arg) => arg.Id == InputId); return(result); }
public void AddCity(CityDto newCity) { _Cities.Add(newCity); }
public void AddNewCity(CityDto newCity) { _ctx.cities.Add(newCity); Save(); }