コード例 #1
0
 private string ReviewUrl(Review review)
 {
     return _urlHelper.Link("Reviews", new
         {
             restaurantid = review.Restaurant.ID,
             id = review.ID
         });
 }
コード例 #2
0
 public ReviewModel Create(Review review)
 {
     return new ReviewModel()
     {
         Url = ReviewUrl(review),
         ID = review.ID,
         RestaurantID = review.RestaurantID,
         Body = review.Body,
         Rating = review.Rating,
         DiningDate = review.DiningDate,
         Created = review.Created
     };
 }