public void Delete(int Id) { Restaurant_user_Review review = this.context.Restaurant_user_Review.SingleOrDefault(x => x.Id == Id); this.context.Restaurant_user_Review.Remove(review); this.context.SaveChanges(); }
public void Update(Restaurant_user_Review RestaurantUserReview) { Restaurant_user_Review Review = this.context.Restaurant_user_Review.SingleOrDefault(x => x.Id == RestaurantUserReview.Id); Review.ReviewContent = RestaurantUserReview.ReviewContent; this.context.SaveChanges(); }
public void Update(Restaurant_user_Review RestaurantUserReview) { this.data.Update(RestaurantUserReview); }
public void Insert(Restaurant_user_Review RestaurantUserReview) { this.data.Insert(RestaurantUserReview); }
public void Insert(Restaurant_user_Review RestaurantUserReview) { this.context.Restaurant_user_Review.Add(RestaurantUserReview); this.context.SaveChanges(); }