public void AddRestaurant(RestaurantDisplay rd) { try { _workUnit.Restaurants.Add(dsp.ToModel(rd)); _workUnit.SaveChanges(); } catch (Exception e) { logger.Error(e.Message); } }
public void AddReview(ReviewDisplay rd, int restId) { try { _workUnit.Reviews.Add(dsp.ToModel(rd, restId)); _workUnit.SaveChanges(); } catch (Exception e) { logger.Error(e.Message); } }