public void AddReview(int id, Review review)
 {
     var realEstate = GetRealEstate(id);
     if (realEstate.Reviews.Count == 0)
         review.Id = 1;
     else
         review.Id = realEstate.Reviews.First().Id + 1;
     realEstate.Reviews.AddFirst(review);
 }
 public void Add(Review objToAdd)
 {
     objToAdd.Id = Id++;
     Reviews.Add(objToAdd);
 }
 public void Update(Review obj)
 {
     throw new NotImplementedException();
 }
 public ActionResult AddReview(int id, Review review)
 {
     rel.AddReview(id, review);
     return PartialView("Review",review);
 }