public void DeletePointOfIntrest(PointOfIntrest pointOfIntrest) { _context.PointOfIntrests.Remove(pointOfIntrest); }
public void UpdatePointOfIntrestForCity(int cityId, PointOfIntrest pointOfIntrest) { //TODO add code if needed (Not using Entity FrameWork) }
public void AddPointOfIntrestForCity(int cityId, PointOfIntrest pointOfIntrest) { var city = GetCity(cityId, false); city.PointOfIntrests.Add(pointOfIntrest); }
public void AddPointOfIntrestForCity(int cityId, PointOfIntrest pointOfIntrest) { var city = GetCity(cityId, includePointsOfIntrest: false); city.PointsOfIntrest.Add(pointOfIntrest); }