Beispiel #1
0
        public PlaceView GetPlaceView(int id)
        {
            Dal.PlaceView dalPlaceView = _placeRepository.GetPlaceViewById(id);

            PlaceView placeView = dalPlaceView.ToDomainObject();

            return(placeView);
        }
Beispiel #2
0
 public static PlaceView ToDomainObject(this Dal.PlaceView place)
 {
     if (place != null)
     {
         return(new PlaceView
         {
             Id = place.Id,
             Number = place.Number,
             Type = place.Type
         });
     }
     else
     {
         return(null);
     }
 }