public void DeletePointOfIntrest(PointOfIntrest pointOfIntrest)
 {
     _context.PointOfIntrests.Remove(pointOfIntrest);
 }
Exemplo n.º 2
0
 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);
        }
Exemplo n.º 4
0
        public void AddPointOfIntrestForCity(int cityId, PointOfIntrest pointOfIntrest)
        {
            var city = GetCity(cityId, includePointsOfIntrest: false);

            city.PointsOfIntrest.Add(pointOfIntrest);
        }