Exemple #1
0
 public void UpdateReview(Review editFrom)
 {
     dbCrud.Update(ReviewMapper.ToDataLayer(editFrom, RestaurantMapper.ToDataLayer(editFrom.restaurant)));
 }
Exemple #2
0
 public void UpdateRestaurant(Restaurant editFrom)
 {
     dbCrud.Update(RestaurantMapper.ToDataLayer(editFrom));
 }
Exemple #3
0
 public void CreateReview(Review toCreate)
 {
     dbCrud.Create(ReviewMapper.ToDataLayer(toCreate, RestaurantMapper.ToDataLayer(toCreate.restaurant)));
 }
Exemple #4
0
 public void CreateRestaurant(Restaurant toCreate)
 {
     dbCrud.Create(RestaurantMapper.ToDataLayer(toCreate));
 }