public bool AddReview(Review review)
 {
     ReviewBL bl = new ReviewBL();
     try
     {
         bl.InsertReview(review);
         return true;
     }
     catch
     {
         return false;
     }
 }
 public List<Review> FindReviewsByProductID(Int32 pid)
 {
     ReviewBL bl = new ReviewBL();
     return bl.GetReviewsByProductID(pid).ToList();
 }
 public bool RemoveReview(Review review)
 {
     ReviewBL bl = new ReviewBL();
     try
     {
         bl.DeleteReview(review);
         return true;
     }
     catch
     {
         return false;
     }
 }
 public double GetAverageRatingByProductID(int id)
 {
     ReviewBL bl = new ReviewBL();
     return bl.GetAverageRatingByProductID(id);
 }
 public List<Review> FindReviewsByUserID(Int32 uid)
 {
     ReviewBL bl = new ReviewBL();
     return bl.GetReviewsByUserID(uid).ToList();
 }
 public List<Review> FindReviewsByProductID(Int32 pid)
 {
     ReviewBL bl = new ReviewBL();
     return bl.GetReviewsByProductID(pid).OrderByDescending(r=>r.createAt).ToList();
 }