public PlaceView GetPlaceView(int id) { Dal.PlaceView dalPlaceView = _placeRepository.GetPlaceViewById(id); PlaceView placeView = dalPlaceView.ToDomainObject(); return(placeView); }
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); } }