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

            PlaceView placeView = dalPlaceView.ToDomainObject();

            return(placeView);
        }
示例#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);
     }
 }